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

    inputfile as argument

diff --git a/extractsounds b/extractsounds
index b2e3985..3411ffb 100755
--- a/extractsounds
+++ b/extractsounds
@@ -1,6 +1,19 @@
 #!/bin/bash
 
-sndfile=LIERO.SND
+usage="Usage: $0 <inputfile>"
+
+if [ $# != 1 ]; then
+       echo $usage
+       exit 1
+fi
+
+if [ ! -r "$1" ]; then
+       echo "Unable to read file '"$1"'"
+       echo $usage
+       exit 1
+fi
+
+sndfile="$1"
 sounds=30
 header=2
 entrysize=16

-- 
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