From 19175b487e9a39106dc7de10ee39e63867ec0c6d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 10 May 2020 20:16:40 +0300 Subject: Remove unused scripts --- scripts/ci | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 scripts/ci (limited to 'scripts/ci') diff --git a/scripts/ci b/scripts/ci deleted file mode 100755 index f73df98..0000000 --- a/scripts/ci +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -mkdir -p ../.gopath -mkdir -p target -mkdir -p .tmp -export GOPATH=$(dirname $(pwd))/.gopath -export SHORTHEAD=${HEAD:0:7} -export VERSION=$(awk '/^Version:/ { print $2 }' deb/DEBIAN/control | sed -E 's/\-[0-9]+$//') - -export CGO_ENABLED=0 - -echo "Compiling for linux/amd64" -go build -o "target/$PROJECT_NAME-linux-amd64" -echo "Compiling for linux/386" -GOARCH=386 go build -o "target/$PROJECT_NAME-linux-386" -echo "Compiling for linux/arm" -GOARCH=arm go build -o "target/$PROJECT_NAME-linux-arm" -echo "Compiling for linux/arm64" -GOARCH=arm64 go build -o "target/$PROJECT_NAME-linux-arm64" -echo "Compiling for darwin/amd64" -GOOS=darwin go build -o "target/$PROJECT_NAME-darwin-amd64" - -echo "Packaging for debian (linux/amd64)" -mkdir -p deb/usr/bin/ - -cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks - -git clone https://github.com/tulir/tcell.git .tmp/tcell -mkdir -p deb/usr/share/tcell/ -rm -rf deb/usr/share/tcell/database -cp -r .tmp/tcell/terminfo/database deb/usr/share/tcell - -sed -i.bak -E 's/(Version: [0-9]+\.[0-9]+\.[0-9]+\-[0-9]+)/\1+'$SHORTHEAD'/' deb/DEBIAN/control -chmod -R -s deb/DEBIAN -chmod -R 0755 deb/DEBIAN -dpkg-deb --build deb 'target/'$PROJECT_NAME'_linux_amd64.deb' -mv -f deb/DEBIAN/control.bak deb/DEBIAN/control - -mkdir -p /srv/downloads/programs/gomuks/$VERSION-$SHORTHEAD -mv target/* /srv/downloads/programs/gomuks/$VERSION-$SHORTHEAD/ -- cgit v1.2.3-70-g09d2