summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin-Éric Racine <q-funk@iki.fi>2007-07-25 09:55:25 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-07-25 09:55:55 -0600
commit8ce4c5cc9650ddc81d9243bc416522800bce3afc (patch)
tree5280ab9783b60a1cc3a1d02a0ecbc235ac64dc2c
parentbb0f0afc6c5cf849081a007af0c2d3485e87e9c4 (diff)
Add the all-important if/then loop to avoid
squashing the ChangeLog if autogen.sh is executed outside of a git tree.
-rwxr-xr-xautogen.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 5a5e365..9b752bb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -11,7 +11,10 @@ rm -rf config.guess config.sub ltmain.sh
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?
-$srcdir/missing --run git-log --stat | fmt --split-only 1> ChangeLog 2>/dev/null
+if [ -d .git ]
+then
+ $srcdir/missing --run git-log --stat | fmt --split-only 1> ChangeLog
+fi
$srcdir/configure --enable-maintainer-mode "$@"