2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00

go: move to community

This commit is contained in:
Dylan Araps 2019-10-10 00:56:36 +03:00
parent f14309e6a9
commit 127d0d2496
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
6 changed files with 0 additions and 69 deletions

View File

@ -1,63 +0,0 @@
#!/bin/sh -e
export GOARCH=amd64
export GO_LDFLAGS="-w -s"
[ -f "$KISS_ROOT/var/db/kiss/installed/go/manifest" ] || {
export GOROOT=$PWD/go1.4-bootstrap
export GOROOT_FINAL=$PWD/lib/go-bootstrap
mkdir -p lib/go-bootstrap
cd "$GOROOT/src"
bash ./make.bash
cd ..
cp -a bin pkg src ../lib/go-bootstrap
cd ..
}
export GOROOT_FINAL=/usr/lib/go
if [ -f "$KISS_ROOT/var/db/kiss/go/manifest" ]; then
export GOROOT_BOOTSTRAP=/usr/lib/go
else
export GOROOT_BOOTSTRAP=$PWD/lib/go-bootstrap
fi
export GOROOT=$PWD/go-current
(
cd "$GOROOT/src"
bash make.bash --no-clean -v
)
cd "$GOROOT"
mkdir -p "$1/usr/bin" "$1/usr/lib/go/bin"
install -m755 "bin/go" "$1/usr/lib/go/bin/go"
install -m755 "bin/gofmt" "$1/usr/lib/go/bin/gofmt"
ln -s "/usr/lib/go/bin/go" "$1/usr/bin"
ln -s "/usr/lib/go/bin/gofmt" "$1/usr/bin"
cp -a misc pkg src lib "$1/usr/lib/go"
# Remove unneeded files.
rm -f "$1/usr/share/go/doc/articles/wiki/get.bin"
rm -f "$1/usr/lib/go/pkg/tool/"*/api
rm -rf "$1/usr/lib/go/pkg/bootstrap"
rm -rf "$1/usr/lib/go/pkg/obj"
cd "$1/usr/lib/go/src"
# Remove tests.
find . -type f -a -name \*_test.go -delete
find . -type f -a -name \*.bash -delete
find . -type f -a -name \*.bat -delete
find . -type f -a -name \*.rc -delete
find . -type d -a -name testdata |
while read -r dir; do
rm -rf "$dir"
done

View File

@ -1,2 +0,0 @@
81f154e69544b9fa92b1475ff5f11e64270260d46e7e36c34aafc8bc96209358 go1.13.1.src.tar.gz
f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52 go1.4-bootstrap-20171003.tar.gz

View File

@ -1 +0,0 @@
bash make

View File

View File

@ -1,2 +0,0 @@
https://golang.org/dl/go1.13.1.src.tar.gz go-current
https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz go1.4-bootstrap

View File

@ -1 +0,0 @@
1.13.1 1