From 5263676cb11fd598f2b448e2e63d9dffc3e71e23 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 1 Nov 2015 15:32:50 +0100 Subject: package.bash: add architecture to filename Example: gocryptfs_v0.3-1-g0788eb4_linux-amd64.tar.gz --- package.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.bash b/package.bash index 7855ce8..a46a028 100755 --- a/package.bash +++ b/package.bash @@ -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 -- cgit v1.2.3