summaryrefslogtreecommitdiffstats
path: root/bin/gpg-sign
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gpg-sign')
-rwxr-xr-xbin/gpg-sign14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/gpg-sign b/bin/gpg-sign
new file mode 100755
index 0000000..561e654
--- /dev/null
+++ b/bin/gpg-sign
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+for FILE in $(find . -maxdepth 1 -mindepth 1 -type f -and -not -name "*.sha512" -and -not -name "*.sig")
+do
+ if [ -e "${FILE}" ] && [ ! -e "${FILE}.sig" ]
+ then
+ echo "${FILE}"
+ gpg --armor -b "${FILE}"
+ mv "${FILE}".asc "${FILE}.sig"
+ touch -r "${FILE}" "${FILE}.sig"
+ fi
+done