hacks/bin/sign-dir

12 lines
300 B
Bash
Executable File

#!/bin/bash
SNEAK_KEY_ID="5539AD00DE4C42F3AFE11575052443F4DF2A55C2"
if [[ -e ./SHASUMS ]]; then
echo "SHASUMS already exists, exiting." > /dev/stderr
exit 1
fi
find . -type f ! -name 'SHASUMS' -exec shasum {} \; >> SHASUMS
gpg -u $SNEAK_KEY_ID -a --output SHASUMS.sig --detach-sig SHASUMS