blob: 8aadca1457a9f996329272ea7b8262eb8c1e42ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -e
#KEY="4B2B2B9E" # Daniel Baumann (2004)
KEY="55CF1BF986ABB9C7" # Daniel Baumann (2014)
#KEY="E79FAE28" # Daniel Baumann (BFH)
#KEY="2D9FA8F6" # Daniel Baumann (Open Infrastructure)
KEY="F2B645DF11964018E7693B9F4613D5C794A6A9B2" # Daniel Baumann (Progress Linux)
for FILE in $(find . -maxdepth 1 -mindepth 1 -type f -and -not -name "*.sha512" -and -not -name "*.gpg")
do
if [ -e "${FILE}" ] && [ ! -e "${FILE}.gpg" ]
then
echo "${FILE}"
gpg --armor --default-key ${KEY} -b ${FILE}
mv "${FILE}.asc" "${FILE}.gpg"
touch -r "${FILE}" "${FILE}.gpg"
fi
done
|