package.bash: add architecture to filename

Example: gocryptfs_v0.3-1-g0788eb4_linux-amd64.tar.gz
This commit is contained in:
Jakob Unterwurzacher 2015-11-01 15:32:50 +01:00
parent e7c25b482e
commit 5263676cb1

View File

@ -4,7 +4,9 @@ set -eux
source build.bash
TARGZ=gocryptfs_$GITVERSION.tar.gz
ARCH=$(go version | cut -d ' ' -f 4 | tr / -)
TARGZ=gocryptfs_${GITVERSION}_$ARCH.tar.gz
tar czf $TARGZ gocryptfs
ls -lh $TARGZ