summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-01-20 13:54:59 -0600
committerMatthew Barth <msbarth@us.ibm.com>2017-01-26 10:42:10 -0600
commitae0e96c3f98e57e5988b1621ec4c67d4b27cda4f (patch)
tree98465618aca2dafe20e547f3ca42ee845f0a947e /bootstrap.sh
parent4aa27f9bfba204d94e9f73779b0a924e2e70c1a9 (diff)
downloadphosphor-fan-presence-ae0e96c3f98e57e5988b1621ec4c67d4b27cda4f.tar.gz
phosphor-fan-presence-ae0e96c3f98e57e5988b1621ec4c67d4b27cda4f.zip
Initial fan presence build framework
Change-Id: Ic39848e285e776ef198c7a41f20debfa164af644 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755
index 0000000..4c0b0f5
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
+ config.guess config.h.in config.h.in~ config.sub configure depcomp \
+ install-sh ltmain.sh missing *libtool"
+
+case $1 in
+ clean)
+ test -f Makefile && make maintainer-clean
+ for file in ${AUTOCONF_FILES}; do
+ find -name "$file" | xargs -r rm -rf
+ done
+ exit 0
+ ;;
+esac
+
+autoreconf -if
+echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
OpenPOWER on IntegriCloud