🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
482 B

#!/bin/sh
#
# Print the current source revision, if available
SDL_ROOT=$(dirname $0)/..
cd $SDL_ROOT
if test -x "$(command -v hg)"; then
rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)"
if test $? = 0; then
echo $rev
exit 0
fi
fi
if test -x "$(command -v p4)"; then
rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')"
if test $? = 0; then
echo $rev
exit 0
fi
fi
echo "hg-0:baadf00d"
exit 1