pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/gmodplay Make mod2wav correctly handle filenames...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9636d0566742
branches: trunk
changeset: 463755:9636d0566742
user: ben <ben%pkgsrc.org@localhost>
date: Tue Nov 25 22:04:03 2003 +0000
description:
Make mod2wav correctly handle filenames with spaces or shell special
characters. Bump PKGREVISION.
Closes PR 19745 by myself.
diffstat:
audio/gmodplay/Makefile | 4 ++--
audio/gmodplay/files/mod2wav | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (53 lines):
diff -r a7ad08e6ed88 -r 9636d0566742 audio/gmodplay/Makefile
--- a/audio/gmodplay/Makefile Tue Nov 25 19:30:21 2003 +0000
+++ b/audio/gmodplay/Makefile Tue Nov 25 22:04:03 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2003/07/22 19:34:30 jmmv Exp $
+# $NetBSD: Makefile,v 1.10 2003/11/25 22:04:03 ben Exp $
DISTNAME= gmodplay-0.08
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://magic.metawire.com/~rani/ \
http://rani.free.fr/
diff -r a7ad08e6ed88 -r 9636d0566742 audio/gmodplay/files/mod2wav
--- a/audio/gmodplay/files/mod2wav Tue Nov 25 19:30:21 2003 +0000
+++ b/audio/gmodplay/files/mod2wav Tue Nov 25 22:04:03 2003 +0000
@@ -5,7 +5,7 @@
CMD=$(basename $0)
-if [ x = x$1 ]
+if [ -z "$*" ]
then
echo "
Usage: $CMD <module>
@@ -23,14 +23,14 @@
exit
fi
-WAVDIR=$(dirname $1)
-WAVNAME=$(basename $1|tr 'A-Z' 'a-z').wav
+WAVDIR=$(dirname "$*")
+WAVNAME=$(basename "$*").wav
-echo -e "$1 -> $WAVDIR/$WAVNAME\c"
+echo -e "$* -> $WAVDIR/$WAVNAME\c"
echo -e " [step 1]\c"
-gmodplay -n -w $1 >/dev/null 2>&1
+gmodplay -n -w "$*" >/dev/null 2>&1
if [ $? -ne 0 ]
then
echo "
@@ -41,7 +41,7 @@
echo -e " [step 2]\c"
chmod a+r output.raw
-sox -t raw -r 44100 -s -w -c 2 output.raw $WAVDIR/$WAVNAME >/dev/null 2>&1
+sox -t raw -r 44100 -s -w -c 2 output.raw "$WAVDIR/$WAVNAME" >/dev/null 2>&1
if [ $? -ne 0 ]
then
echo "
Home |
Main Index |
Thread Index |
Old Index