[libav-commits] fate: improve md5sum utility selection

Mans Rullgard git at libav.org
Mon Oct 15 22:49:32 CEST 2012


Module: libav
Branch: master
Commit: 099294577c8ca5d1a7d3403a57b607791997104d

Author:    Mans Rullgard <mans at mansr.com>
Committer: Mans Rullgard <mans at mansr.com>
Date:      Sun Oct 14 15:49:25 2012 +0100

fate: improve md5sum utility selection

The 'md5sum' command is used with the -b flag so the presence test
must also use this flag.

Signed-off-by: Mans Rullgard <mans at mansr.com>

---

 tests/md5.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/md5.sh b/tests/md5.sh
index 4b95127..0b382b1 100644
--- a/tests/md5.sh
+++ b/tests/md5.sh
@@ -1,6 +1,6 @@
 # try to find an md5 program
 
-if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
+if [ X"$(echo | md5sum -b 2> /dev/null)" != X ]; then
     do_md5sum() { md5sum -b $1; }
 elif [ X"$(echo | command md5 2> /dev/null)" != X ]; then
     do_md5sum() { command md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }



More information about the libav-commits mailing list