LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mjpegtools-2.0.0-fix-bashisms.patch of Package mjpegtools (Project home:mvaldina)

diff -Ndur mjpegtools-2.0.0/scripts/lav2avi.sh mjpegtools-2.0.0-fix-bashisms/scripts/lav2avi.sh
--- mjpegtools-2.0.0/scripts/lav2avi.sh	2004-08-07 05:51:14.000000000 +0300
+++ mjpegtools-2.0.0-fix-bashisms/scripts/lav2avi.sh	2014-11-29 22:02:38.363918541 +0200
@@ -72,7 +72,11 @@
 }
 
 if [ $usage -eq 1 ]; then
-   echo -e "USAGE:\t`basename $0` filename.eli"
-   echo -e "\n\tfilename - MJPEG Tools lav editing file\n"
-   echo -e "EXAMPLE:\n\t`basename $0` SecondFilm.eli\n"
+   echo "USAGE:	`basename $0` filename.eli"
+   echo
+   echo "	filename - MJPEG Tools lav editing file"
+   echo
+   echo "EXAMPLE:"
+   echo "	`basename $0` SecondFilm.eli"
+   echo
 fi
diff -Ndur mjpegtools-2.0.0/scripts/lav2mpeg mjpegtools-2.0.0-fix-bashisms/scripts/lav2mpeg
--- mjpegtools-2.0.0/scripts/lav2mpeg	2009-01-23 17:52:25.000000000 +0200
+++ mjpegtools-2.0.0-fix-bashisms/scripts/lav2mpeg	2014-11-29 22:03:59.200913072 +0200
@@ -252,7 +252,7 @@
          ;;
     esac
 done
-let MOPTIND=OPTIND-LAVRC_COUNT
+MOPTIND=$((OPTIND - LAVRC_COUNT))
 shift `expr $MOPTIND - 1`
 
 if [ "${QUIETLOG}" != "" ]; then
diff -Ndur mjpegtools-2.0.0/scripts/lavtc.sh mjpegtools-2.0.0-fix-bashisms/scripts/lavtc.sh
--- mjpegtools-2.0.0/scripts/lavtc.sh	2009-01-23 17:52:24.000000000 +0200
+++ mjpegtools-2.0.0-fix-bashisms/scripts/lavtc.sh	2014-11-29 22:04:07.719912496 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # lav2tc.bash - use transcode to convert MJPEG avi files to another 
 #               video/audio format.