mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 15:33:16 +01:00
15 lines
448 B
Bash
Executable File
15 lines
448 B
Bash
Executable File
#!/bin/bash -eux
|
|
|
|
# Get git version, something like "v1.2.3"
|
|
GITVERSION=$(git describe --tags --dirty)
|
|
# Drop leading "v" to get just "1.2.3"
|
|
VERSION=${GITVERSION#v}
|
|
# Folder name inside the tarball should be "encfs-1.2.3"
|
|
PREFIX="encfs-$VERSION"
|
|
|
|
# Actually create archive
|
|
git archive --prefix "$PREFIX/" -o $PREFIX.tar.gz HEAD
|
|
|
|
gpg --list-secret-keys --keyid-format LONG
|
|
echo "Hint for signing: gpg -u <user> --armor --detach-sig $PREFIX.tar.gz"
|