blob: 9e232b6ed097182cac864425e74f78fae2dc2f95 [file] [log] [blame]
Ratan Guptaec26fa62018-04-16 15:28:36 +05301#!/bin/sh
2
3set -eu
4
5AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
6 config.guess config.h.in config.sub configure depcomp install-sh \
7 ltmain.sh missing *libtool test-driver"
8
9BOOTSTRAP_MODE=""
10
11if [ $# -gt 0 ];
12then
13 BOOTSTRAP_MODE="${1}"
14 shift 1
15fi
16
17case ${BOOTSTRAP_MODE} in
18 clean)
19 test -f Makefile && make maintainer-clean
20 for file in ${AUTOCONF_FILES}; do
21 find -name "$file" | xargs -r rm -rf
22 done
23 exit 0
24 ;;
25esac
26
27autoreconf -i
28
29case ${BOOTSTRAP_MODE} in
30 dev)
31 ./configure \
32 ${CONFIGURE_FLAGS} \
33 --enable-code-coverage \
34 --enable-oe-sdk \
35 "$@"
36 ;;
37 *)
38 echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
39 ;;
40esac
41