Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: patched-ffmpeg-mt/tests/md5.sh

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: patched-ffmpeg-mt/tests/md5.sh
===================================================================
--- patched-ffmpeg-mt/tests/md5.sh (revision 0)
+++ patched-ffmpeg-mt/tests/md5.sh (revision 0)
@@ -0,0 +1,11 @@
+# try to find an md5 program
+
+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 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
+elif [ -x /sbin/md5 ]; then
+ do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
+else
+ do_md5sum() { echo No md5sum program found; }
+fi

Powered by Google App Engine
This is Rietveld 408576698