summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorMartin-Éric Racine <q-funk@iki.fi>2007-07-06 16:59:51 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-07-06 17:00:27 -0600
commit47b5a249e7ae877d7816504fec4f987442d07931 (patch)
tree2402150b89fc39e8f8d897bef934db986ac6bfde /autogen.sh
parentf42add8948e2cee3d9f2edf580f260c42718fc0c (diff)
An improved autogen.sh script
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 904cd67..cc32b02 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@@ -6,7 +6,15 @@ test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
+rm -rf config.guess config.sub ltmain.sh
+
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?
$srcdir/configure --enable-maintainer-mode "$@"
+
+make distclean
+
+rm -rf autom4te.cache
+
+#EOF