[SCM] libav/experimental: Use BSD-compatible expr syntax and change test -ne to test != for portability.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:46:42 UTC 2013


The following commit has been merged in the experimental branch:
commit d315ec5c3185517b40ba33a2ccabd82520bcd35f
Author: Diego Biurrun <diego at biurrun.de>
Date:   Fri Feb 24 13:02:33 2006 +0000

    Use BSD-compatible expr syntax and change test -ne to test != for portability.
    
    Originally committed as revision 5060 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/server-regression.sh b/tests/server-regression.sh
index b5edf6f..c93f99f 100755
--- a/tests/server-regression.sh
+++ b/tests/server-regression.sh
@@ -26,7 +26,7 @@ sleep 2
     rm -f ff-*;
     WGET_OPTIONS="--user-agent=NSPlayer -q --proxy=off -e verbose=off -e server_response=off"
     for file in $FILES; do
-        if [ `expr match $file "a-*"` -ne 0 ]; then
+        if [ `expr $file : "a-*"` != 0 ]; then
             wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file > ff-$file &
         else
             wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=100000 > ff-$file 2>/dev/null &

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list