-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild-autotools.sh
executable file
·73 lines (56 loc) · 1.68 KB
/
build-autotools.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env bash
# Written and placed in public domain by Jeffrey Walton
# This script builds Autotools from sources. A separate
# script is available for Libtool for brave souls.
# Trying to update Autotools may be more trouble than it is
# worth. If the upgrade goes bad, then you can uninstall
# it with the script clean-autotools.sh
###############################################################################
# Get the environment as needed.
if [[ "${SETUP_ENVIRON_DONE}" != "yes" ]]; then
if ! source ./setup-environ.sh
then
echo "Failed to set environment"
exit 1
fi
fi
# The password should die when this subshell goes out of scope
if [[ "${SUDO_PASSWORD_DONE}" != "yes" ]]; then
if ! source ./setup-password.sh
then
echo "Failed to process password"
exit 1
fi
fi
###############################################################################
if ! ./build-cacert.sh
then
echo "Failed to install CA Certs"
exit 1
fi
###############################################################################
if ! ./build-m4.sh
then
echo "Failed to build M4"
exit 1
fi
###############################################################################
if ! ./build-autoconf.sh
then
echo "Failed to build Autoconf"
exit 1
fi
###############################################################################
if ! ./build-automake.sh
then
echo "Failed to build Automake"
exit 1
fi
###############################################################################
if ! ./build-libtool.sh
then
echo "Failed to build Libtool"
exit 1
fi
###############################################################################
exit 0