[FFmpeg-devel] [PATCH] find md5sum for regression.sh on OpenBSD

Reimar Döffinger Reimar.Doeffinger
Sat Dec 13 00:29:01 CET 2008


Hello,
OpenBSD too has md5 instead of md5sum, but it is in /bin instead of
/sbin.
This is one way to fix it:

Index: tests/regression.sh
===================================================================
--- tests/regression.sh (revision 16083)
+++ tests/regression.sh (working copy)
@@ -37,6 +37,8 @@
 
 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# \**\./# *./#'; }
 elif [ -x /sbin/md5 ]; then
     do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
 else


The code duplication could be avoided by adding /sbin to the path.

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list