nixpkgs/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.sh
2013-09-01 01:57:58 +02:00

20 lines
294 B
Bash
Executable file

#!/run/current-system/sw/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 ']'