diff options
author | 2023-07-27 19:47:37 -0400 | |
---|---|---|
committer | 2023-07-27 19:47:37 -0400 | |
commit | bf8229dde723d1c16b401d6d2d6154a0bf349eac (patch) | |
tree | 85b9e7c9b8db9494ff9a7dfdfb0b819af9658c2f /mkasc.sh | |
parent | cleanup (diff) | |
parent | Merge pull request #5916 from kmk3/build-improve-dist (diff) | |
download | firejail-bf8229dde723d1c16b401d6d2d6154a0bf349eac.tar.gz firejail-bf8229dde723d1c16b401d6d2d6154a0bf349eac.tar.zst firejail-bf8229dde723d1c16b401d6d2d6154a0bf349eac.zip |
Merge branch 'master' of ssh://github.com/netblue30/firejail
Diffstat (limited to 'mkasc.sh')
-rwxr-xr-x | mkasc.sh | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -3,11 +3,13 @@ | |||
3 | # Copyright (C) 2014-2023 Firejail Authors | 3 | # Copyright (C) 2014-2023 Firejail Authors |
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | echo "Calculating SHA256 for all files in /transfer - firejail version $1" | 6 | . "$(dirname "$0")/config.sh" |
7 | |||
8 | printf 'Calculating SHA256 for all files in /transfer - %s version %s' "$TARNAME" "$VERSION" | ||
7 | 9 | ||
8 | cd /transfer || exit 1 | 10 | cd /transfer || exit 1 |
9 | sha256sum ./* > "firejail-$1-unsigned" | 11 | sha256sum ./* > "$TARNAME-$VERSION-unsigned" |
10 | gpg --clearsign --digest-algo SHA256 < "firejail-$1-unsigned" > "firejail-$1.asc" | 12 | gpg --clearsign --digest-algo SHA256 < "$TARNAME-$VERSION-unsigned" > "$TARNAME-$VERSION.asc" |
11 | gpg --verify "firejail-$1.asc" | 13 | gpg --verify "$TARNAME-$VERSION.asc" |
12 | gpg --detach-sign --armor "firejail-$1.tar.xz" | 14 | gpg --detach-sign --armor "$TARNAME-$VERSION.tar.xz" |
13 | rm "firejail-$1-unsigned" | 15 | rm "$TARNAME-$VERSION-unsigned" |