build-scripts/showrev.sh
author Ryan C. Gordon <icculus@icculus.org>
Tue, 06 Oct 2015 00:10:54 -0400
changeset 9887 77f017f7f16d
parent 4935 a727eda441be
child 10420 0d91817f35e9
permissions -rwxr-xr-x
Mac: Reset display if going from fullscreen to a fullscreen Space or vice-versa.

Otherwise, bad things happen.
slouken@2982
     1
#!/bin/sh
slouken@2982
     2
#
slouken@2982
     3
# Print the current source revision, if available
slouken@2982
     4
icculus@4419
     5
# FIXME: this prints the tip, which isn't useful if you're on a different
icculus@4419
     6
#  branch, or just not sync'd to the tip.
slouken@4935
     7
hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)