Improve LibreOffice src list generation
This commit is contained in:
parent
f727f815cb
commit
e32172612a
@ -1,7 +1,11 @@
|
|||||||
#!/run/current-system/sw/bin/bash
|
#!/run/current-system/sw/bin/bash
|
||||||
|
|
||||||
|
# Ideally we would move as much as possible into derivation dependencies
|
||||||
|
|
||||||
# Take the list of files from the main package, ooo.lst.in
|
# Take the list of files from the main package, ooo.lst.in
|
||||||
|
|
||||||
|
# This script wants an argument: download list file
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
[
|
[
|
||||||
EOF
|
EOF
|
||||||
@ -11,11 +15,18 @@ write_entry(){
|
|||||||
echo " name = \"${name}\";"
|
echo " name = \"${name}\";"
|
||||||
echo " md5 = \"${md5}\";"
|
echo " md5 = \"${md5}\";"
|
||||||
echo " brief = ${brief};"
|
echo " brief = ${brief};"
|
||||||
|
eval "echo -n \"\$additions_${name%%[-_.]*}\""
|
||||||
|
eval "test -n \"\$additions_${name%%[-_.]*}\" && echo"
|
||||||
echo '}'
|
echo '}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cat "$(dirname "$0")/libreoffice-srcs-additions.sh" "$@" |
|
||||||
while read line; do
|
while read line; do
|
||||||
case "$line" in
|
case "$line" in
|
||||||
|
EVAL\ *)
|
||||||
|
echo "${line#* }" >&2;
|
||||||
|
eval "${line#* }";
|
||||||
|
;;
|
||||||
\#*)
|
\#*)
|
||||||
echo Skipping comment: "$line" >&2;
|
echo Skipping comment: "$line" >&2;
|
||||||
;;
|
;;
|
||||||
@ -42,6 +53,7 @@ while read line; do
|
|||||||
line="${line#,}"
|
line="${line#,}"
|
||||||
md5=${line:0:32};
|
md5=${line:0:32};
|
||||||
name=${line:33};
|
name=${line:33};
|
||||||
|
name="${name%)}"
|
||||||
brief=false;
|
brief=false;
|
||||||
write_entry;
|
write_entry;
|
||||||
;;
|
;;
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
EVAL additions_libgltf=' subDir = "libgltf";'
|
@ -323,6 +323,7 @@
|
|||||||
name = "libgltf-0.0.2.tar.bz2";
|
name = "libgltf-0.0.2.tar.bz2";
|
||||||
md5 = "d63a9f47ab048f5009d90693d6aa6424";
|
md5 = "d63a9f47ab048f5009d90693d6aa6424";
|
||||||
brief = true;
|
brief = true;
|
||||||
|
subDir = "libgltf";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "liblangtag-0.5.1.tar.bz2";
|
name = "liblangtag-0.5.1.tar.bz2";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user