1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/var/run/current-system/bin/bash # Take the list of files from the main package, ooo.lst.in cat <<EOF [ EOF read file while read file; do if [[ "$file" == @* ]]; then break fi echo '{' echo " name = \"${file:33}\";" echo " md5 = \"${file:0:32}\";" echo '}' done echo ']'