fate: try to fix 3rd md5 implementation
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Jun 2012 01:52:22 +0000 (03:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Jun 2012 02:16:23 +0000 (04:16 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/md5.sh

index 4b95127..e21e5c3 100644 (file)
@@ -5,7 +5,7 @@ if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
 elif [ X"$(echo | command md5 2> /dev/null)" != X ]; then
     do_md5sum() { command md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
 elif [ -x /sbin/md5 ]; then
-    do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
+    do_md5sum() { /sbin/md5 -r $1 | sed 's/\([0-9a-f]\) [ *]*/\1 */'; }
 elif openssl version >/dev/null 2>&1; then
     do_md5sum() { openssl md5 $1 | sed 's/MD5(\(.*\))= \(.*\)/\2 *\1/'; }
 else