2013-09-01 00:57:33 +01:00
|
|
|
#!/run/current-system/sw/bin/bash
|
2012-01-25 19:12:27 +00:00
|
|
|
|
2012-03-12 20:15:08 +00:00
|
|
|
# Take the list of files from the main package, ooo.lst.in
|
2012-01-25 19:12:27 +00:00
|
|
|
|
2012-08-31 09:11:41 +01:00
|
|
|
cat <<EOF
|
|
|
|
[
|
|
|
|
EOF
|
2012-01-25 19:12:27 +00:00
|
|
|
|
2014-06-27 13:25:19 +01:00
|
|
|
write_entry(){
|
2012-08-31 09:11:41 +01:00
|
|
|
echo '{'
|
2014-06-27 13:25:19 +01:00
|
|
|
echo " name = \"${name}\";"
|
|
|
|
echo " md5 = \"${md5}\";"
|
|
|
|
echo " brief = ${brief};"
|
2012-08-31 09:11:41 +01:00
|
|
|
echo '}'
|
2014-06-27 13:25:19 +01: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 19:12:27 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo ']'
|