forked from coreemu/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·40 lines (37 loc) · 1.03 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#
# (c)2010-2012 the Boeing Company
#
# author: Jeff Ahrenholz <[email protected]>
#
# Bootstrap the autoconf system.
#
# PASS
if [ x$1 = x ]; then
echo "Bootstrapping the autoconf system..."
echo "(Messages below about copying and installing files are normal.)"
# clean - take out the trash
elif [ x$1 = xclean ]; then
echo "Cleaning up the autoconf mess..."
rm -rf autom4te.cache config
exit 0;
# help text
else
echo "usage: $0 [clean]"
echo -n " Use this script to bootstrap the autoconf build system prior to "
echo "running the "
echo " ./configure script."
exit 1;
fi
# try to keep everything nice and tidy in ./config
if ! [ -d "config" ]; then
mkdir config
fi
# bootstrapping
echo "(1/4) Running aclocal..." && aclocal -I config \
&& echo "(2/4) Running autoheader..." && autoheader \
&& echo "(3/4) Running automake..." \
&& automake --add-missing --copy --foreign \
&& echo "(4/4) Running autoconf..." && autoconf \
&& echo "" \
&& echo "You are now ready to run \"./configure\"."