Commit de40eb8d authored by Reimar Döffinger's avatar Reimar Döffinger

Fix regression.sh to work on OpenBSD which has md5 instead of md5sum

but it is in the path (/bin), not /sbin.

Originally committed as revision 16088 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d88f7df8
...@@ -37,6 +37,8 @@ target_crcfile="$target_datadir/$this.crc" ...@@ -37,6 +37,8 @@ target_crcfile="$target_datadir/$this.crc"
if [ X"`echo | md5sum 2> /dev/null`" != X ]; then if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
do_md5sum() { md5sum -b $1; } do_md5sum() { md5sum -b $1; }
elif [ X"`echo | md5 2> /dev/null`" != X ]; then
do_md5sum() { md5 -r $1 | sed 's# \**\./# *./#'; }
elif [ -x /sbin/md5 ]; then elif [ -x /sbin/md5 ]; then
do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; } do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment