2013-09-01 01:57:33 +02:00
|
|
|
#!/run/current-system/sw/bin/bash
|
2012-01-25 20:12:27 +01:00
|
|
|
|
2012-03-12 21:15:08 +01:00
|
|
|
# Take the list of files from the main package, ooo.lst.in
|
2012-01-25 20:12:27 +01:00
|
|
|
|
2012-08-31 10:11:41 +02:00
|
|
|
cat <<EOF
|
|
|
|
[
|
|
|
|
EOF
|
2012-01-25 20:12:27 +01:00
|
|
|
|
2014-06-27 14:25:19 +02:00
|
|
|
write_entry(){
|
2012-08-31 10:11:41 +02:00
|
|
|
echo '{'
|
2014-06-27 14:25:19 +02:00
|
|
|
echo " name = \"${name}\";"
|
|
|
|
echo " md5 = \"${md5}\";"
|
|
|
|
echo " brief = ${brief};"
|
2012-08-31 10:11:41 +02:00
|
|
|
echo '}'
|
2014-06-27 14:25:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
while read line; do
|
|
|
|
case "$line" in
|
|
|
|
\#*)
|
|
|
|
echo Skipping comment: "$line" >&2;
|
|
|
|
;;
|
|
|
|
*_MD5SUM\ :=*)
|
|
|
|
read tbline;
|
|
|
|
line=${line##* };
|
|
|
|
tbline=${tbline##* };
|
|
|
|
md5=$line
|
|
|
|
name=$tbline;
|
|
|
|
brief=true;
|
|
|
|
write_entry;
|
|
|
|
;;
|
|
|
|
*_TARBALL\ :=*)
|
|
|
|
line=${line##* };
|
|
|
|
md5=${line:0:32};
|
|
|
|
name=${line:33};
|
|
|
|
brief=false;
|
|
|
|
write_entry;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo Skipping: "$line" >&2;
|
|
|
|
;;
|
|
|
|
esac
|
2012-01-25 20:12:27 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
echo ']'
|