summaryrefslogtreecommitdiffstats
path: root/bin/sha512sums
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/sha512sums13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/sha512sums b/bin/sha512sums
new file mode 100755
index 0000000..228a8d9
--- /dev/null
+++ b/bin/sha512sums
@@ -0,0 +1,13 @@
+#!/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}.sha512" ]
+ then
+ echo "${FILE}"
+ sha512sum "${FILE}" > "${FILE}.sha512"
+ touch -r "${FILE}" "${FILE}.sha512"
+ fi
+done