build-scripts/showrev.sh
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 26 Jun 2016 21:08:57 +0200
changeset 10186 6c8e53149f0c
parent 4935 a727eda441be
permissions -rwxr-xr-x
Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters.

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