add md5 for packages

This commit is contained in:
dmacias72 2016-10-09 10:29:27 -06:00
parent 39f0bb370f
commit bd7f10769e

12
source/md5tofile Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ $# -ne 1 ] ; then
echo "Usage $0 [directory]"
exit 1
fi
find $1 -type f -print0 | while IFS= read -r -d $'\0' file; do
(
cd "$(dirname "$file")"
filename="$(basename "$file")"
md5sum "$filename" > "$filename".md5
)
done