diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 20:33:18 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 20:33:18 -0400 |
commit | cb6b6e8b67f5c4abbfc0f8c2b538815ebc841c73 (patch) | |
tree | 7e8454f7b1a103c688aaa24c183bfa59b43ce39a | |
parent | 24935ab40c6cfae59e6a4e260e2f2ff3424bf92d (diff) | |
download | fork-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-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 |