@@ -13,56 +13,56 @@ PATH=/${ARCH_DIR}/bin
13
13
14
14
# Set commonly used variables
15
15
sysa=/sysa
16
- distfiles =/sysa/distfiles
17
- prefix =/usr
18
- bindir =${prefix } /bin
19
- libdir =${prefix } /lib
20
- incdir =${prefix } /include
21
- srcdir =${prefix } /src
16
+ DISTFILES =/sysa/distfiles
17
+ PREFIX =/usr
18
+ BINDIR =${PREFIX } /bin
19
+ LIBDIR =${PREFIX } /lib
20
+ INCDIR =${PREFIX } /include
21
+ SRCDIR =${PREFIX } /src
22
22
TMPDIR=/tmp # tmpdir is needed for patch to work
23
23
24
- mkdir -p ${prefix } ${bindir } ${libdir } ${incdir } ${srcdir } ${TMPDIR}
24
+ mkdir -p ${PREFIX } ${BINDIR } ${LIBDIR } ${INCDIR } ${SRCDIR } ${TMPDIR}
25
25
26
26
# Remove remaining dependencies on /bin (stage0-posix directory)
27
- cp /${ARCH_DIR} /bin/blood-elf ${bindir } /blood-elf
28
- cp /${ARCH_DIR} /bin/catm ${bindir } /catm
29
- cp /${ARCH_DIR} /bin/chmod ${bindir } /chmod
30
- cp /${ARCH_DIR} /bin/get_machine ${bindir } /get_machine
31
- cp /${ARCH_DIR} /bin/hex2 ${bindir } /hex2
32
- cp /${ARCH_DIR} /bin/kaem ${bindir } /kaem
33
- cp /${ARCH_DIR} /bin/match ${bindir } /match
34
- cp /${ARCH_DIR} /bin/M1 ${bindir } /M1
35
- cp /${ARCH_DIR} /bin/M2-Mesoplanet ${bindir } /M2-Mesoplanet
36
- cp /${ARCH_DIR} /bin/M2-Planet ${bindir } /M2-Planet
37
- cp /${ARCH_DIR} /bin/mkdir ${bindir } /mkdir
38
- cp /${ARCH_DIR} /bin/sha256sum ${bindir } /sha256sum
39
- cp /${ARCH_DIR} /bin/unbz2 ${bindir } /unbz2
40
- cp /${ARCH_DIR} /bin/ungz ${bindir } /ungz
41
- cp /${ARCH_DIR} /bin/untar ${bindir } /untar
42
- cp /${ARCH_DIR} /bin/cp ${bindir } /cp
43
- cp /${ARCH_DIR} /bin/replace ${bindir } /replace
44
- cp /${ARCH_DIR} /bin/rm ${bindir } /rm
27
+ cp /${ARCH_DIR} /bin/blood-elf ${BINDIR } /blood-elf
28
+ cp /${ARCH_DIR} /bin/catm ${BINDIR } /catm
29
+ cp /${ARCH_DIR} /bin/chmod ${BINDIR } /chmod
30
+ cp /${ARCH_DIR} /bin/get_machine ${BINDIR } /get_machine
31
+ cp /${ARCH_DIR} /bin/hex2 ${BINDIR } /hex2
32
+ cp /${ARCH_DIR} /bin/kaem ${BINDIR } /kaem
33
+ cp /${ARCH_DIR} /bin/match ${BINDIR } /match
34
+ cp /${ARCH_DIR} /bin/M1 ${BINDIR } /M1
35
+ cp /${ARCH_DIR} /bin/M2-Mesoplanet ${BINDIR } /M2-Mesoplanet
36
+ cp /${ARCH_DIR} /bin/M2-Planet ${BINDIR } /M2-Planet
37
+ cp /${ARCH_DIR} /bin/mkdir ${BINDIR } /mkdir
38
+ cp /${ARCH_DIR} /bin/sha256sum ${BINDIR } /sha256sum
39
+ cp /${ARCH_DIR} /bin/unbz2 ${BINDIR } /unbz2
40
+ cp /${ARCH_DIR} /bin/ungz ${BINDIR } /ungz
41
+ cp /${ARCH_DIR} /bin/untar ${BINDIR } /untar
42
+ cp /${ARCH_DIR} /bin/cp ${BINDIR } /cp
43
+ cp /${ARCH_DIR} /bin/replace ${BINDIR } /replace
44
+ cp /${ARCH_DIR} /bin/rm ${BINDIR } /rm
45
45
46
- chmod 755 ${bindir } /blood-elf
47
- chmod 755 ${bindir } /catm
48
- chmod 755 ${bindir } /chmod
49
- chmod 755 ${bindir } /cp
50
- chmod 755 ${bindir } /get_machine
51
- chmod 755 ${bindir } /hex2
52
- chmod 755 ${bindir } /kaem
53
- chmod 755 ${bindir } /match
54
- chmod 755 ${bindir } /M1
55
- chmod 755 ${bindir } /M2-Mesoplanet
56
- chmod 755 ${bindir } /M2-Planet
57
- chmod 755 ${bindir } /mkdir
58
- chmod 755 ${bindir } /sha256sum
59
- chmod 755 ${bindir } /unbz2
60
- chmod 755 ${bindir } /ungz
61
- chmod 755 ${bindir } /untar
62
- chmod 755 ${bindir } /replace
63
- chmod 755 ${bindir } /rm
46
+ chmod 755 ${BINDIR } /blood-elf
47
+ chmod 755 ${BINDIR } /catm
48
+ chmod 755 ${BINDIR } /chmod
49
+ chmod 755 ${BINDIR } /cp
50
+ chmod 755 ${BINDIR } /get_machine
51
+ chmod 755 ${BINDIR } /hex2
52
+ chmod 755 ${BINDIR } /kaem
53
+ chmod 755 ${BINDIR } /match
54
+ chmod 755 ${BINDIR } /M1
55
+ chmod 755 ${BINDIR } /M2-Mesoplanet
56
+ chmod 755 ${BINDIR } /M2-Planet
57
+ chmod 755 ${BINDIR } /mkdir
58
+ chmod 755 ${BINDIR } /sha256sum
59
+ chmod 755 ${BINDIR } /unbz2
60
+ chmod 755 ${BINDIR } /ungz
61
+ chmod 755 ${BINDIR } /untar
62
+ chmod 755 ${BINDIR } /replace
63
+ chmod 755 ${BINDIR } /rm
64
64
65
- PATH=${bindir }
65
+ PATH=${BINDIR }
66
66
67
67
cd ${sysa}
68
68
0 commit comments