The following commit has been merged in the master branch:
commit 43d9e786628ccb495b10faad0257e3ff9a914dd3
Author: Martin Erik Werner <[email protected]>
Date:   Fri Jan 20 00:23:09 2012 +0100

    cleanup errors and check for sox

diff --git a/extractsounds b/extractsounds
index 3411ffb..32654d9 100755
--- a/extractsounds
+++ b/extractsounds
@@ -3,16 +3,17 @@
 usage="Usage: $0 <inputfile>"
 
 if [ $# != 1 ]; then
-       echo $usage
+       echo >&2 $usage
        exit 1
 fi
 
 if [ ! -r "$1" ]; then
-       echo "Unable to read file '"$1"'"
-       echo $usage
+       echo >&2 "Unable to read file '"$1"', aborting"
        exit 1
 fi
 
+hash sox 2>&- || { echo >&2 "This script requires the "'"SoX"'" audio 
manipulator, aborting"; exit 1; }
+
 sndfile="$1"
 sounds=30
 header=2

-- 
Packaging for original LIERO binary data

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to