early-access version 1667
This commit is contained in:
8
externals/SDL/build-scripts/showrev.sh
vendored
8
externals/SDL/build-scripts/showrev.sh
vendored
@@ -5,9 +5,9 @@
|
||||
SDL_ROOT=$(dirname $0)/..
|
||||
cd $SDL_ROOT
|
||||
|
||||
if [ -x "$(command -v hg)" ]; then
|
||||
rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)"
|
||||
if [ $? = 0 ]; then
|
||||
if [ -x "$(command -v git)" ]; then
|
||||
rev=$(echo "$(git remote get-url origin 2>/dev/null)@$(git rev-list HEAD~.. 2>/dev/null)")
|
||||
if [ "$rev" != "@" ]; then
|
||||
echo $rev
|
||||
exit 0
|
||||
fi
|
||||
@@ -21,5 +21,5 @@ if [ -x "$(command -v p4)" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "hg-0:baadf00d"
|
||||
echo ""
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user