summaryrefslogtreecommitdiffstats
path: root/bin/sha512sums
blob: 228a8d958348c65de01a2ca48e4958c60556c3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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