mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-18 20:21:18 +00:00
remove another md5sum dep
This commit is contained in:
parent
14fdc5e189
commit
edb422c26e
17
all
17
all
@ -39,23 +39,10 @@ msg()
|
||||
echo "[1m$*[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
|
||||
|
Loading…
Reference in New Issue
Block a user