|
@ -14,8 +14,13 @@ mkdir -p "go$version_go" |
|
|
tar xf "$dir_download/go$version_go.src.tar.gz" -C "go$version_go" --strip-components 1 |
|
|
tar xf "$dir_download/go$version_go.src.tar.gz" -C "go$version_go" --strip-components 1 |
|
|
cd "go$version_go" |
|
|
cd "go$version_go" |
|
|
|
|
|
|
|
|
|
|
|
# Create dummy git repo |
|
|
|
|
|
# This avoids problems if a parent git repo is found but owned by a different user |
|
|
|
|
|
mkdir -p .git/objects .git/refs |
|
|
|
|
|
echo 'ref: refs/heads/master' > .git/HEAD |
|
|
|
|
|
|
|
|
# Build and install |
|
|
# Build and install |
|
|
(cd src; GOROOT_BOOTSTRAP="$PWD/../../install-go$version_boot" ./make.bash) |
|
|
(cd src; GOROOT_BOOTSTRAP="$PWD/../../install-go$version_boot" ./make.bash -v) |
|
|
|
|
|
|
|
|
find src -type f \( ! -name '*.go' \ |
|
|
find src -type f \( ! -name '*.go' \ |
|
|
-a ! -name '*.c' \ |
|
|
-a ! -name '*.c' \ |
|
|