summaryrefslogtreecommitdiff
path: root/audio/sox
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-08 21:21:41 +0000
committerrillig <rillig>2006-10-08 21:21:41 +0000
commitde9d7e349a14e263104e203a15dd7c5335d846b8 (patch)
treebd4745525cf91c295c6d14c544da106857fd17b6 /audio/sox
parentca1112cc7da5fa3c6ac0cce55357b870831002d0 (diff)
downloadpkgsrc-de9d7e349a14e263104e203a15dd7c5335d846b8.tar.gz
Fixed "test ==".
Diffstat (limited to 'audio/sox')
-rw-r--r--audio/sox/distinfo3
-rw-r--r--audio/sox/patches/patch-ac41
2 files changed, 43 insertions, 1 deletions
diff --git a/audio/sox/distinfo b/audio/sox/distinfo
index 942d89cfc86..c2aa11fcb30 100644
--- a/audio/sox/distinfo
+++ b/audio/sox/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2006/08/07 23:39:56 wiz Exp $
+$NetBSD: distinfo,v 1.14 2006/10/08 21:21:41 rillig Exp $
SHA1 (sox-12.18.1.tar.gz) = 9591248680029a6e89468daeb4046cdab6e6e759
RMD160 (sox-12.18.1.tar.gz) = 8177a5b606aad45d7bdf8bba9ea6d818b2399301
Size (sox-12.18.1.tar.gz) = 473181 bytes
SHA1 (patch-aa) = a1e3d17b0f674dd55405879337754c16846e5b03
SHA1 (patch-ab) = 52157b6875ca4ca1b116ae898e26a99652bdb55b
+SHA1 (patch-ac) = b278e5a9d31af90fdbd15ee604e6f78fe4682bff
diff --git a/audio/sox/patches/patch-ac b/audio/sox/patches/patch-ac
new file mode 100644
index 00000000000..584e9257e49
--- /dev/null
+++ b/audio/sox/patches/patch-ac
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.9 2006/10/08 21:21:41 rillig Exp $
+
+Fixed "test ==" and many stylistic issues.
+
+--- scripts/audiogen.orig 2004-09-23 02:52:14.000000000 +0200
++++ scripts/audiogen 2006-10-08 23:17:57.000000000 +0200
+@@ -1,24 +1,23 @@
+ #!/bin/sh
+ #
+-# usage:audiogen <rate> <channels> <filename> <length> <audio generator options>
++# usage: audiogen <rate> <channels> <filename> <length> <audio generator options>
+ #
+ # Example of using the "nul" file handler along with "synth" effect
+ # to generate audio data. Nul file handler pipes a stream of null
+ # data non-stop. Synth effect overrides it with its own data and
+ # stops based on length parameter.
+
+-if [ "$5" == "" ]; then
+- echo "usage: $0 <rate> <channels> <filename> <length> <audio generator options>"
+- echo
+- echo "See sox man page and the \"synth\" effect for further information on audio generation options."
++if [ $# -ne 5 ]; then
++ { echo "usage: $0 <rate> <channels> <filename> <length> <audio generator options>"
++ echo
++ echo "See sox man page and the \"synth\" effect for further information on audio generation options."
++ } 1>&2
+ exit 1
+ fi
+
+ rate=$1
+-shift
+-channels=$1
+-shift
+-filename=$1
+-shift
++channels=$2
++filename=$3
++shift 3
+
+-sox -s -w -t nul -r $rate -c $channels /dev/null $filename synth $*
++exec sox -s -w -t nul -r "$rate" -c "$channels" /dev/null "$filename" synth "$@"