build-scripts/showrev.sh
author Sam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 23:36:59 -0500
changeset 6265 01bf72bcad1e
parent 4935 a727eda441be
permissions -rwxr-xr-x
Successfully built an SDL 2.0 RPM

#!/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)