-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package.bash: Encode host distribution into tar filename
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -eux | ||
set -eu | ||
|
||
source build.bash | ||
source build.bash # Builds binary and sets GITVERSION (example: v0.7-15-gf01f599) | ||
source /etc/os-release # Sets ID (example: fedora) and VERSION_ID (example: 23) | ||
ARCH=$(go env GOARCH) | ||
|
||
ARCH=$(go version | cut -d ' ' -f 4 | tr / -) | ||
|
||
TARGZ=gocryptfs_${GITVERSION}_$ARCH.tar.gz | ||
TARGZ=gocryptfs_${GITVERSION}_${ID}${VERSION_ID}_${ARCH}.tar.gz | ||
|
||
tar czf $TARGZ gocryptfs | ||
ls -lh $TARGZ | ||
|
||
echo "Tar created." | ||
echo "Hint for signing: gpg -u 23A02740 --armor --detach-sig $TARGZ" |