Skip to content

Instantly share code, notes, and snippets.

@mtwilliams
Last active August 29, 2015 14:00
Show Gist options
  • Save mtwilliams/11102421 to your computer and use it in GitHub Desktop.
Save mtwilliams/11102421 to your computer and use it in GitHub Desktop.
DEFINES += -DGAME_VERSION="\"$(shell build/version.sh)\""
DEFINES += -DENGINE_VERSION="\"$(shell cd engine; ../build/version.sh)\""
DEFINES += -DCONTENT_VERSION="\"$(shell cd data_src; ../build/version.sh)\""
#!/usr/bin/env bash
# No hacks for hg!
COMMIT=`git log --pretty=oneline | wc -l`
REVISION=`git rev-parse HEAD`
echo "$COMMIT ($REVISION)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment