Lines 82-87
Link Here
|
82 |
./cmd/dist/dist bootstrap $buildall -v # builds go_bootstrap |
82 |
./cmd/dist/dist bootstrap $buildall -v # builds go_bootstrap |
83 |
# Delay move of dist tool to now, because bootstrap may clear tool directory. |
83 |
# Delay move of dist tool to now, because bootstrap may clear tool directory. |
84 |
mv cmd/dist/dist "$GOTOOLDIR"/dist |
84 |
mv cmd/dist/dist "$GOTOOLDIR"/dist |
|
|
85 |
if [ -f "$GOTOOLDIR"/8l ]; then |
86 |
mv "$GOTOOLDIR"/8l{,.orig} |
87 |
cat <<'EOF' >"$GOTOOLDIR"/8l |
88 |
#!/bin/bash |
89 |
BIN="8.out" |
90 |
for (( i = 1 ; i <= $# ; i++ )); do |
91 |
if [ "x${!i}" = "x-o" ]; then |
92 |
i=$(( i + 1 )) |
93 |
BIN="${!i}" |
94 |
fi |
95 |
done |
96 |
$(dirname $0)/8l.orig "$@" && paxctl -cm "$BIN" &>/dev/null |
97 |
EOF |
98 |
chmod +x "$GOTOOLDIR"/8l |
99 |
fi |
100 |
if [ -f "$GOTOOLDIR"/6l ]; then |
101 |
mv "$GOTOOLDIR"/6l{,.orig} |
102 |
cat <<'EOF' >"$GOTOOLDIR"/6l |
103 |
#!/bin/bash |
104 |
BIN="6.out" |
105 |
for (( i = 1 ; i <= $# ; i++ )); do |
106 |
if [ "x${!i}" = "x-o" ]; then |
107 |
i=$(( i + 1 )) |
108 |
BIN="${!i}" |
109 |
fi |
110 |
done |
111 |
$(dirname $0)/6l.orig "$@" && paxctl -cm "$BIN" &>/dev/null |
112 |
EOF |
113 |
chmod +x "$GOTOOLDIR"/6l |
114 |
fi |
115 |
paxctl -cm "$GOTOOLDIR"/go_bootstrap &>/dev/null |
85 |
"$GOTOOLDIR"/go_bootstrap clean -i std |
116 |
"$GOTOOLDIR"/go_bootstrap clean -i std |
86 |
echo |
117 |
echo |
87 |
|
118 |
|