Compare commits

...

5 commits

Author SHA1 Message Date
0dc1188701
Ignore build/ 2019-05-30 10:14:06 +02:00
9c8a66100f Merge branch 'releaseutils' 2019-05-29 00:12:09 +02:00
db33746f26 Merge branch '5-socketpaths' 2019-05-29 00:12:03 +02:00
bc2a197192 release.sh makes everything for a release 2019-05-29 00:11:36 +02:00
4b4b330341 release bash script 2019-05-28 20:43:49 +02:00
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.*.vim .*.vim
/build

20
release.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
set -u
for goosarch in $(go tool dist list | grep -vw -e aix -e js/wasm -e plan9 -e solaris -e android -e nacl)
do
mkdir -p "build/$goosarch"
goos=$(cut -d/ -f 1 <<<$goosarch)
goarch=$(cut -d/ -f 2 <<<$goosarch)
for cmd in cmd/*; do
GOOS=${goos} GOARCH=${goarch} go build -o "build/$goos/$goarch/$(basename $cmd)" ./$cmd
done
done
find build/ -type f|cut -d/ -f 1-3|uniq|while read -r dir; do
find $dir/ -type f -executable | xargs sha1sum > $dir/SHA1SUMS.txt
# TODO: touch to last commit date maybe
find build -exec touch -d @1234567890 {} \;
zip -q -X -j -r "circolog-$(git describe --tags --always)-$(cut -d/ -f 2-3 <<<"$dir"|tr / -)" "$dir"
done