summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-01-13 22:37:26 +1030
committerCyril Bur <cyril.bur@au1.ibm.com>2017-01-17 10:45:09 +1100
commit22778044a43bdcc4ce824dc8f1d5fbe34bb27332 (patch)
treedd0cc159aa03e1a37689a44c33d33a78a4299a06 /bootstrap.sh
parent899ebaca5eb14ed37d8e53cb4ab1ca95a778fdf5 (diff)
downloadphosphor-mboxd-22778044a43bdcc4ce824dc8f1d5fbe34bb27332.tar.gz
phosphor-mboxd-22778044a43bdcc4ce824dc8f1d5fbe34bb27332.zip
Convert to autotools
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755
index 0000000..f1be536
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
+ config.guess config.h.in config.sub configure depcomp install-sh \
+ ltmain.sh missing *libtool test-driver"
+
+case $1 in
+ clean)
+ test -f Makefile && make maintainer-clean
+ test -d linux && find linux -type d -empty | xargs -r rm -rf
+ for file in ${AUTOCONF_FILES}; do
+ find -name "$file" | xargs -r rm -rf
+ done
+ exit 0
+ ;;
+esac
+
+autoreconf -i
+echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
OpenPOWER on IntegriCloud