From edb422c26e7f44d6e0c295078f4dc63d62832ad2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 22 Jun 2010 17:05:06 +0200 Subject: [PATCH] remove another md5sum dep --- all | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) 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 -- 2.39.2