build-scripts/showrev.sh
author Sam Lantinga <slouken@libsdl.org>
Tue, 30 Jul 2013 00:02:45 -0700
changeset 7547 abdea1385dbb
parent 4935 a727eda441be
permissions -rwxr-xr-x
Fixed compiler warning with gcc

#!/bin/sh
#
# Print the current source revision, if available

# FIXME: this prints the tip, which isn't useful if you're on a different
#  branch, or just not sync'd to the tip.
hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)