diff options
-rwxr-xr-x | acprep | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -8,16 +8,18 @@ # This script simply sets up the compiler and linker flags for all the various # build permutations I use for testing and profiling. - -# Make sure that all of the dependencies are available -git submodule init -git submodule update +if [ -d .git ]; then + # Make sure that all of the dependencies are available + git submodule init + git submodule update + + COMMIT=$(git describe --all --long | sed 's/heads\///') +else + COMMIT=unknown +fi -COMMIT=$(git describe --all --long | sed 's/heads\///') echo "m4_define([VERSION_NUMBER], [$COMMIT])" > version.m4 - - sh autogen.sh |