diff options
author | TW <tw@waldmann-edv.de> | 2019-02-11 02:45:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 02:45:46 +0100 |
commit | fa9d3263deb459c001ccea1f941401461eb382f5 (patch) | |
tree | 95d1eeb7f5f18bf483a8358df83472c6ceb0d551 /scripts | |
parent | ba5185cbdb2fcc994b79754863c0379c7a7e3f09 (diff) | |
parent | 305efb5b01447fd9c320c6eac6cdf155d7922280 (diff) |
Merge pull request #4345 from ThomasWaldmann/update-scripts-master
signing binaries with Qubes OS support, docs
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/sign-binaries | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/sign-binaries b/scripts/sign-binaries index e7ae657e7..4f145be75 100755 --- a/scripts/sign-binaries +++ b/scripts/sign-binaries @@ -1,9 +1,20 @@ #!/bin/bash -# usage: sign-binaries 201512312359 + +D=$1 + +if [ "$D" = "" ]; then + echo "Usage: sign-binaries 201912312359" + exit +fi + +if [ "$QUBES_GPG_DOMAIN" = "" ]; then + GPG=gpg +else + GPG=qubes-gpg-client-wrapper +fi for file in dist/borg-*; do - gpg --armor --detach-sign $file + $GPG --local-user "Thomas Waldmann" --armor --detach-sign --output $file.asc $file done -touch -t $1 dist/* - +touch -t $D dist/* |