summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/patches/patch-ad
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-10-13 12:51:27 +0000
committertron <tron@pkgsrc.org>2006-10-13 12:51:27 +0000
commita9a91268a977ce944e676723341cd4b6b5f34c34 (patch)
tree069ab19bf21c4cf077de51cb0b566616ae5ad2b1 /multimedia/mjpegtools/patches/patch-ad
parentf0fbf805e18ec4f24bd5d1986e6de80be71b9c47 (diff)
downloadpkgsrc-a9a91268a977ce944e676723341cd4b6b5f34c34.tar.gz
Fix non-portable shell scripts, bump package revision.
Diffstat (limited to 'multimedia/mjpegtools/patches/patch-ad')
-rw-r--r--multimedia/mjpegtools/patches/patch-ad42
1 files changed, 42 insertions, 0 deletions
diff --git a/multimedia/mjpegtools/patches/patch-ad b/multimedia/mjpegtools/patches/patch-ad
new file mode 100644
index 00000000000..eefeb84656d
--- /dev/null
+++ b/multimedia/mjpegtools/patches/patch-ad
@@ -0,0 +1,42 @@
+--- scripts/lav2mpeg.orig 2004-08-07 03:51:14.000000000 +0100
++++ scripts/lav2mpeg 2006-10-13 13:23:51.000000000 +0100
+@@ -106,10 +106,10 @@
+ }
+
+ doStep() {
+- if [ "$LOGCOMMANDS" == "0" ]; then
++ if [ "$LOGCOMMANDS" = "0" ]; then
+ echo "COMMAND=${step[$count]}"
+ fi
+- if [ "$LOGONLY" == "" ]; then
++ if [ "$LOGONLY" = "" ]; then
+ eval ${step[$count]}
+ fi
+ }
+@@ -174,7 +174,7 @@
+ logIt "downscale=$downscaling"
+ }
+
+-if [ $# -eq 0 -o "$1" == "--help" -o "$1" = "-h" ]; then
++if [ $# -eq 0 -o "$1" = "--help" -o "$1" = "-h" ]; then
+ usage;
+ exit 1
+ fi
+@@ -268,7 +268,7 @@
+ # lavinfo should set up video_frames, video_width
+ # video_height, video_inter, video_norm, audio_chans
+ eval $($LAVINFO $@ | grep "=") # grep for = to remove Warnings
+-if [ "$video_frames" == "" ]; then
++if [ "$video_frames" = "" ]; then
+ logIt "'lavinfo $@' died! exiting"
+ logIt " maybe you don't have lavinfo. or your input flags were wrong"
+ logIt " input files must be the last input on the command line"
+@@ -348,7 +348,7 @@
+ fi
+
+ # set up the audio
+-if [ "$userstereo" == "" ]; then
++if [ "$userstereo" = "" ]; then
+ stereo=${audio_chans:-0}
+ else
+ stereo=$userstereo