2015-10-07 22:14:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-01-09 15:47:29 +01:00
|
|
|
set -eu
|
2016-11-01 15:43:33 +01:00
|
|
|
cd $(dirname "$0")
|
2015-10-07 22:14:00 +02:00
|
|
|
|
2016-01-09 15:47:29 +01:00
|
|
|
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)
|
2016-11-01 15:43:33 +01:00
|
|
|
# Build gocryptfs.1 man page
|
|
|
|
./Documentation/MANPAGE-render.bash > /dev/null
|
|
|
|
cp -a ./Documentation/gocryptfs.1 .
|
2015-11-01 15:06:30 +01:00
|
|
|
|
2016-01-09 15:47:29 +01:00
|
|
|
TARGZ=gocryptfs_${GITVERSION}_${ID}${VERSION_ID}_${ARCH}.tar.gz
|
2015-11-01 15:06:30 +01:00
|
|
|
|
2016-11-01 15:43:33 +01:00
|
|
|
tar czf $TARGZ gocryptfs gocryptfs.1
|
2016-01-09 15:47:29 +01:00
|
|
|
|
|
|
|
echo "Tar created."
|
|
|
|
echo "Hint for signing: gpg -u 23A02740 --armor --detach-sig $TARGZ"
|