package-static.bash: add gocryptfs-xray to tarball
Requested here https://github.com/rfjakob/gocryptfs/issues/558 and here https://github.com/rfjakob/gocryptfs/issues/496 Closes https://github.com/rfjakob/gocryptfs/issues/496
This commit is contained in:
parent
db91050f9e
commit
e0981ea59b
@ -6,20 +6,24 @@ cd "$(dirname "$0")"
|
|||||||
source build-without-openssl.bash
|
source build-without-openssl.bash
|
||||||
|
|
||||||
if ldd gocryptfs > /dev/null ; then
|
if ldd gocryptfs > /dev/null ; then
|
||||||
echo "error: compiled binary is not static"
|
echo "error: compiled gocryptfs binary is not static"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build gocryptfs.1 man page
|
# Build man pages gocryptfs.1 & gocryptfs-xray.1
|
||||||
./Documentation/MANPAGE-render.bash > /dev/null
|
./Documentation/MANPAGE-render.bash > /dev/null
|
||||||
cp -a ./Documentation/gocryptfs.1 .
|
|
||||||
|
|
||||||
ARCH=$(go env GOARCH)
|
ARCH=$(go env GOARCH)
|
||||||
OS=$(go env GOOS)
|
OS=$(go env GOOS)
|
||||||
|
|
||||||
TARGZ=gocryptfs_${GITVERSION}_${OS}-static_${ARCH}.tar.gz
|
TARBALL=gocryptfs_${GITVERSION}_${OS}-static_${ARCH}.tar
|
||||||
|
TARGZ=$TARBALL.gz
|
||||||
|
|
||||||
tar --owner=root --group=root -czf "$TARGZ" gocryptfs gocryptfs.1
|
tar --owner=root --group=root --create -vf "$TARBALL" gocryptfs
|
||||||
|
tar --owner=root --group=root --append -vf "$TARBALL" -C gocryptfs-xray gocryptfs-xray
|
||||||
|
tar --owner=root --group=root --append -vf "$TARBALL" -C Documentation gocryptfs.1 gocryptfs-xray.1
|
||||||
|
|
||||||
|
gzip -f "$TARBALL"
|
||||||
|
|
||||||
echo "Tar created."
|
echo "Tar created."
|
||||||
echo "Hint for signing: gpg -u 23A02740 --armor --detach-sig $TARGZ"
|
echo "Hint for signing: gpg -u 23A02740 --armor --detach-sig $TARGZ"
|
||||||
|
Loading…
Reference in New Issue
Block a user