From: Rudolf Polzer Date: Tue, 22 Jun 2010 15:05:06 +0000 (+0200) Subject: remove another md5sum dep X-Git-Tag: xonotic-v0.1.0preview~402 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=edb422c26e7f44d6e0c295078f4dc63d62832ad2 remove another md5sum dep --- diff --git a/all b/all index fb30b1e7..3b288454 100755 --- a/all +++ b/all @@ -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