summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep39
1 files changed, 21 insertions, 18 deletions
diff --git a/acprep b/acprep
index d4c65359..24889da0 100755
--- a/acprep
+++ b/acprep
@@ -8,29 +8,32 @@
# This script simply sets up the compiler and linker flags for all the various
# build permutations I use for testing and profiling.
-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
+if [ ! -f configure -o configure.ac -nt configure -o \
+ ! -f Makefile.in -o Makefile.am -nt Makefile.in ]
+then
+ 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
+ echo "m4_define([VERSION_NUMBER], [$COMMIT])" > version.m4
-echo "m4_define([VERSION_NUMBER], [$COMMIT])" > version.m4
-sh tools/autogen.sh
+ sh tools/autogen.sh
+ # configure the template files
+ if [ ! -f po/Makevars ]; then
+ mv po/Makevars.template po/Makevars
+ fi
+ git ls-files '*.cc' '*.h' | egrep '^(src|python)/' > po/POTFILES.in
-# configure the template files
-if [ ! -f po/Makevars ]; then
- mv po/Makevars.template po/Makevars
+ # regenerate aclocal.m4
+ aclocal -I m4
fi
-git ls-files '*.cc' '*.h' | egrep '^(src|python)/' > po/POTFILES.in
-
-# regenerate aclocal.m4
-aclocal -I m4
SWITCHES="--disable-shared --with-included-gettext"