summaryrefslogtreecommitdiffstats
path: root/bin/gpg-sig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/gpg-sig20
-rwxr-xr-xbin/gpg-sign14
2 files changed, 34 insertions, 0 deletions
diff --git a/bin/gpg-sig b/bin/gpg-sig
new file mode 100755
index 0000000..8aadca1
--- /dev/null
+++ b/bin/gpg-sig
@@ -0,0 +1,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
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