pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/sox Fixed "test ==".



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c545d439535c
branches:  trunk
changeset: 519731:c545d439535c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Oct 08 21:21:41 2006 +0000

description:
Fixed "test ==".

diffstat:

 audio/sox/distinfo         |   3 ++-
 audio/sox/patches/patch-ac |  41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r ddabf6462a53 -r c545d439535c audio/sox/distinfo
--- a/audio/sox/distinfo        Sun Oct 08 20:55:12 2006 +0000
+++ b/audio/sox/distinfo        Sun Oct 08 21:21:41 2006 +0000
@@ -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 -r ddabf6462a53 -r c545d439535c audio/sox/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/sox/patches/patch-ac        Sun Oct 08 21:21:41 2006 +0000
@@ -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 "$@"



Home | Main Index | Thread Index | Old Index