-
Notifications
You must be signed in to change notification settings - Fork 7
/
bootstrap
executable file
·40 lines (32 loc) · 1000 Bytes
/
bootstrap
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/bash
# If no configure script exists in the base directory, run this
# script to bootstrap the project via automake and autoconf
# OR
# If the configure.ac script has been edited, run this script to
# regenerate the configure script.
#
# If this script generates some warnings, run autoupdate on the
# configure.ac file.
#
ACLOCAL="aclocal"
AUTOHEADER="autoheader"
AUTOCONF="autoconf"
AUTOMAKE="automake"
export ACLOCAL
export AUTOHEADER
export AUTOCONF
export AUTOMAKE
echo "+ collecting m4 macros"
${ACLOCAL} -I config \
|| { echo "ERROR: aclocal failed"; exit 1; }
echo "+ generating configuration header"
${AUTOHEADER} --warnings=all \
|| { echo "ERROR: autoheader failed"; exit 1; }
echo "+ generating makefile inputs"
${AUTOMAKE} --warnings=all --foreign --include-deps \
|| { echo "ERROR: automake failed"; exit 1; }
echo "+ generating configure script"
${AUTOCONF} --warnings=all \
|| { echo "ERROR: autoconf failed"; exit 1; }
echo "BOOTSTRAP COMPLETE"
##-- END OF SCRIPT --##