fate: use our variable names in test rules imported from Mike's db
[libav.git] / tests / md5.sh
CommitLineData
fc8cb398
MR
1# try to find an md5 program
2
3if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
4 do_md5sum() { md5sum -b $1; }
5elif [ X"$(echo | md5 2> /dev/null)" != X ]; then
6 do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
7elif [ -x /sbin/md5 ]; then
8 do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
9else
10 do_md5sum() { echo No md5sum program found; }
11fi