3 # Print the current source revision, if available
5 SDL_ROOT=$(dirname $0)/..
8 if [ -x "$(command -v hg)" ]; then
9 rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)"
16 if [ -x "$(command -v p4)" ]; then
17 rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')"