diff --git a/makebin.sh b/makebin.sh deleted file mode 100755 index 0452a8d..0000000 --- a/makebin.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/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 diff --git a/makezip.sh b/makezip.sh deleted file mode 100755 index 7dca798..0000000 --- a/makezip.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -find build/ -type f|cut -d/ -f 1-3|uniq|while read -r dir; do - zip -j -r "circolog-$(git describe)-$(cut -d/ -f 2-3 <<<"$dir"|tr / -)" "$dir" -done - -wait - diff --git a/release.sh b/release.sh index 0c15d89..58c66bd 100755 --- a/release.sh +++ b/release.sh @@ -13,5 +13,8 @@ do done find build/ -type f|cut -d/ -f 1-3|uniq|while read -r dir; do - zip -j -r "circolog-$(git describe)-$(cut -d/ -f 2-3 <<<"$dir"|tr / -)" "$dir" + 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