aboutsummaryrefslogtreecommitdiffstats
path: root/mkasc.sh
blob: de9bf9851ee50719e2338b2eeaf2ca3f7a6c9142 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# This file is part of Firejail project
# Copyright (C) 2014-2023 Firejail Authors
# License GPL v2

echo "Calculating SHA256 for all files in /transfer - firejail version $1"

cd /transfer || exit 1
sha256sum ./* > "firejail-$1-unsigned"
gpg --clearsign --digest-algo SHA256 < "firejail-$1-unsigned" > "firejail-$1.asc"
gpg --verify "firejail-$1.asc"
gpg --detach-sign --armor "firejail-$1.tar.xz"
rm "firejail-$1-unsigned"