summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2007-10-25 11:09:46 -0400
committerSteve Dickson <steved@redhat.com>2007-10-25 11:09:46 -0400
commitb5a64db41f0f49929dea8268a67820fa6a5ae053 (patch)
tree0252f87433ad2c4d778a919d6adb190966021227 /autogen.sh
parent3f947c093f828629c2fc5624aa3ad8c7465f76d1 (diff)
downloadti-rpc-b5a64db41f0f49929dea8268a67820fa6a5ae053.tar.gz
Cleaned out all the stale autoconf files
Added autogen.sh script used to generate all the autoconf files. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'autogen.sh')
-rw-r--r--autogen.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100644
index 0000000..1613b6d
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,42 @@
+#!/bin/sh -e
+
+echo -n cleaning up .
+
+# Clean up the generated crud
+(
+ for FILE in compile config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs; do
+ if test -f $FILE; then
+ rm -f $FILE
+ fi
+ echo -n .
+ done
+)
+
+for FILE in aclocal.m4 configure config.h.in; do
+ if test -f $FILE; then
+ rm -f $FILE
+ fi
+ echo -n .
+done
+
+for DIR in autom4te.cache; do
+ if test -d $DIR; then
+ rm -rf $DIR
+ fi
+ echo -n .
+done
+
+find . -type f -name 'Makefile.in' -print0 | xargs -r0 rm -f --
+find . -type f -name 'Makefile' -print0 | xargs -r0 rm -f --
+
+echo ' done'
+
+if test x"${1}" = x"clean"; then
+ exit
+fi
+
+aclocal
+libtoolize --force --copy
+autoheader
+automake --add-missing --copy --gnu # -Wall
+autoconf # -Wall