-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path5.all-lfs_construct-tools.sh
74 lines (69 loc) · 2 KB
/
5.all-lfs_construct-tools.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
74
#!/bin/bash
echo ""
echo "### -------------------------------"
echo "### CONSTRUCT TEMP SYSTEM ###"
echo "### CHAPTER 5.all ###"
echo "### Constructing a Temporary System"
echo "### Must be run as \"lfs\" user"
echo "### -------------------------------"
echo ""
echo "... Loading commun functions and variables"
if [ ! -f ./script-all_commun-functions.sh ]
then
echo "!! Fatal Error 1: './script-all_commun-functions.sh' not found."
exit 1
fi
source ./script-all_commun-functions.sh
if [ ! -f ./script-all_commun-variables.sh ]
then
echo "!! Fatal Error 1: './script-all_commun-variables.sh' not found."
exit 1
fi
source ./script-all_commun-variables.sh
echo ""
echo "... Validating the environment"
check_partitions
is_user lfs
echo ""
echo "READ CAREFULLY"
echo "Running this script will be long, ~2h"
echo "The compilation time is ~1h30m in the best cases."
echo "But note that you will be required during some of the steps."
echo "When steps are required from you, the terminal will produce a sound. But check often, in case you didn't hear it."
echo ""
echo -e "\a"
read -p "Enter to confirm" -n 1 -r
echo ""
./5.3-lfs_check-tools.sh
./5.4-lfs_binutils-2.25.1-pass-1.sh
./5.5-lfs_gcc-5.2.0-pass-1.sh
./5.6-lfs_linux-4.2-api-headers.sh
./5.7-lfs_glibc-2.22.sh
./5.8-lfs_libstdcpp-5.2.0.sh
./5.9-lfs_binutils-2.25.1-pass-2.sh
./5.10-lfs_gcc-5.2.0-pass-2.sh
./5.11-lfs_tcl-core-8.6.4.sh
./5.12-lfs_expect-5.45.sh
./5.13-lfs_dejagnu-1.5.3.sh
./5.14-lfs_check-0.10.0.sh
./5.15-lfs_ncurses-6.0.sh
./5.16-lfs_bash-4.3.30.sh
./5.17-lfs_bzip2-1.0.6.sh
./5.18-lfs_coreutils-8.24.sh
./5.19-lfs_diffutils-3.3.sh
./5.20-lfs_file-5.24.sh
./5.21-lfs_findutils-4.4.2.sh
./5.22-lfs_gawk-4.1.3.sh
./5.23-lfs_gettext-0.19.5.1.sh
./5.24-lfs_grep-2.21.sh
./5.25-lfs_gzip-1.6.sh
./5.26-lfs_m4-1.4.17.sh
./5.27-lfs_make-4.1.sh
./5.28-lfs_patch-2.7.5.sh
./5.29-lfs_perl-5.22.0.sh
./5.30-lfs_sed-4.2.2.sh
./5.31-lfs_tar-1.28.sh
./5.32-lfs_texinfo-6.0.sh
./5.33-lfs_util-linux-2.27.sh
./5.34-lfs_xz-5.2.1.sh
./5.35-lfs_stripping.sh