diff options
| author | Russ Cox <rsc@golang.org> | 2012-02-02 23:32:41 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-02-02 23:32:41 -0500 |
| commit | b3750ff52d7da7d35c590451ba50833149ac3fc1 (patch) | |
| tree | 76cfbb705851bc8eb99cb8d0c06eb6ffe97fc628 /src/make.bash | |
| parent | 9de9c95787096d4150315bd974f7815e0b667a98 (diff) | |
| download | go-b3750ff52d7da7d35c590451ba50833149ac3fc1.tar.xz | |
build: rename $GOROOT/bin/go-tool to $GOROOT/bin/tool.
The go- is redundant now that the directory is required
to be inside $GOROOT. Rob LGTMed the idea.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5618044
Diffstat (limited to 'src/make.bash')
| -rwxr-xr-x | src/make.bash | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/make.bash b/src/make.bash index fafd843e02..9b43770704 100755 --- a/src/make.bash +++ b/src/make.bash @@ -22,10 +22,11 @@ if ld --version 2>&1 | grep 'gold.* 2\.20' >/dev/null; then fi # Create target directories -mkdir -p "$GOROOT/bin/go-tool" +mkdir -p "$GOROOT/bin/tool" mkdir -p "$GOROOT/pkg" -# Remove old, pre-go-tool binaries. +# Remove old, pre-tool binaries. +rm -rf "$GOROOT"/bin/go-tool rm -f "$GOROOT"/bin/[568][acgl] rm -f "$GOROOT"/bin/{6cov,6nm,cgo,ebnflint,goapi,gofix,goinstall,gomake,gopack,gopprof,gotest,gotype,govet,goyacc,quietgcc} @@ -44,13 +45,13 @@ export MAKEFLAGS unset CDPATH # in case user has it set rm -f "$GOBIN"/quietgcc -rm -f "$GOROOT/bin/go-tool/quietgcc" +rm -f "$GOROOT/bin/tool/quietgcc" CC=${CC:-gcc} export CC -sed -e "s|@CC@|$CC|" < "$GOROOT"/src/quietgcc.bash > "$GOROOT"/bin/go-tool/quietgcc -chmod +x "$GOROOT"/bin/go-tool/quietgcc +sed -e "s|@CC@|$CC|" < "$GOROOT"/src/quietgcc.bash > "$GOROOT"/bin/tool/quietgcc +chmod +x "$GOROOT"/bin/tool/quietgcc -export GOMAKE="$GOROOT"/bin/go-tool/make +export GOMAKE="$GOROOT"/bin/tool/make rm -f "$GOBIN"/gomake rm -f "$GOMAKE" ( |
