summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep16
1 files changed, 9 insertions, 7 deletions
diff --git a/acprep b/acprep
index 4706708b..44b4d41a 100755
--- a/acprep
+++ b/acprep
@@ -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