remove another md5sum dep
authorRudolf Polzer <divverent@alientrap.org>
Tue, 22 Jun 2010 15:05:06 +0000 (17:05 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 22 Jun 2010 15:05:06 +0000 (17:05 +0200)
all

diff --git a/all b/all
index fb30b1e793aa61946529bcc37deac7f392b06c50..3b288454c901e1bad9821817b5448543a38b17f8 100755 (executable)
--- a/all
+++ b/all
@@ -39,23 +39,10 @@ msg()
        echo "\e[1m$*\e[m"
 }
 
-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