summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-15 20:33:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-15 20:33:18 -0400
commitcb6b6e8b67f5c4abbfc0f8c2b538815ebc841c73 (patch)
tree7e8454f7b1a103c688aaa24c183bfa59b43ce39a
parent24935ab40c6cfae59e6a4e260e2f2ff3424bf92d (diff)
downloadfork-ledger-cb6b6e8b67f5c4abbfc0f8c2b538815ebc841c73.tar.gz
fork-ledger-cb6b6e8b67f5c4abbfc0f8c2b538815ebc841c73.tar.bz2
fork-ledger-cb6b6e8b67f5c4abbfc0f8c2b538815ebc841c73.zip
acprep doesn't call out to git if it's not there
-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