summaryrefslogtreecommitdiff
path: root/package.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-01 15:32:50 +0100
committerJakob Unterwurzacher2015-11-01 15:33:54 +0100
commit5263676cb11fd598f2b448e2e63d9dffc3e71e23 (patch)
tree7f9cb1be14eb214426271d06271aa6b550e3ae2a /package.bash
parente7c25b482e14941cdfec61329f6a752f1666a2f2 (diff)
package.bash: add architecture to filename
Example: gocryptfs_v0.3-1-g0788eb4_linux-amd64.tar.gz
Diffstat (limited to 'package.bash')
-rwxr-xr-xpackage.bash4
1 files changed, 3 insertions, 1 deletions
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