[SCM] libav/experimental: Fix md5 program invocation for BSD. patch by Michael Kostylev, michael.kostylev gmail com

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:52:10 UTC 2013


The following commit has been merged in the experimental branch:
commit 0e829974f56c1f528914a58736dc1357eff4af7b
Author: Michael Kostylev <michael.kostylev at gmail.com>
Date:   Tue Sep 29 19:49:04 2009 +0000

    Fix md5 program invocation for BSD.
    patch by Michael Kostylev, michael.kostylev gmail com
    
    Originally committed as revision 20086 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index b0a541e..fe97d3a 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -38,7 +38,7 @@ target_crcfile="$target_datadir/$this.crc"
 if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
     do_md5sum() { md5sum -b $1; }
 elif [ X"`echo | md5 2> /dev/null`" != X ]; then
-    do_md5sum() { md5 -r $1 | sed 's# \**\./# *./#'; }
+    do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
 elif [ -x /sbin/md5 ]; then
     do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
 else

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list