summaryrefslogtreecommitdiff
path: root/autotools/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autotools/autogen.sh')
-rwxr-xr-xautotools/autogen.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/autotools/autogen.sh b/autotools/autogen.sh
new file mode 100755
index 0000000..1f3109d
--- /dev/null
+++ b/autotools/autogen.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+auxdir=autoscripts
+
+set -x
+
+# aclocal generated files
+rm -rf aclocal.m4 autom4te.cache
+
+# autoheader generated files
+rm -f config.h.in
+
+# autoconf generated files
+rm -f configure
+
+# automake generated files
+rm -f ${auxdir}/{config.guess,config.sub,depcomp,install-sh,missing}
+rm -f Makefile.in
+
+# configure generated files
+rm -f config.h config.log config.status Makefile Makefile.in stamp-h1
+
+rm -f $(find ${auxdir} -type l 2>/dev/null)
+rmdir ${auxdir} 2>/dev/null
+
+if [[ "$1" == clean ]]; then
+ exit 0
+fi
+
+mkdir ${auxdir} 2>/dev/null
+
+aclocal
+autoheader
+autoconf
+automake --add-missing
+