remove another md5sum dep

This commit is contained in:
Rudolf Polzer 2010-06-22 17:05:06 +02:00
parent 14fdc5e189
commit edb422c26e

17
all
View File

@ -39,23 +39,10 @@ msg()
echo "$*"
}
checksum()
{
if [ -x /usr/bin/md5sum ]; then
/usr/bin/md5sum "$@"
elif [ -x /bin/md5sum ]; then
/bin/md5sum "$@"
elif [ -x /usr/bin/cksum ]; then
/usr/bin/cksum "$@"
else
echo "NOCHECKSUM"
fi
}
self=`checksum "$SELF"`
self=`git hash-object "$SELF"`
checkself()
{
self_new=`checksum "$SELF"`
self_new=`git hash-object "$SELF"`
if [ x"$self" != x"$self_new" ]; then
msg "./all has changed."
if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then