git.iko.soy/typeable/nixpkgs
on master help sign in
libreoffice: generate-libreoffice-srcs.sh: take into account that LO now sometimes lets the checksum go after the tarball
commit242cea8a6353f22d5c06127eaf858cf07c14fa7d authorMichael Raskin <7c6f434c@mail.ru> dateMon 12 Sep 2016, 12:45 (10 years ago) parent49f4ba7
1 file changed+13−2
pkgs/applications/office/libreoffice/generate-libreoffice-srcs.sh+13−2
pkgs/applications/office/libreoffice/generate-libreoffice-srcs.sh+13−2
@@ -18,20 +18,27 @@ write_entry(){
1818 eval "echo -n \"\$additions_${name%%[-_.]*}\""
1919 eval "test -n \"\$additions_${name%%[-_.]*}\" && echo"
2020 echo '}'
21+ saved_line=
2122}
2223
24+saved_line=
2325cat "$(dirname "$0")/libreoffice-srcs-additions.sh" "$@" |
2426while read line; do
2527 case "$line" in
2628 EVAL\ *)
2729 echo "${line#* }" >&2;
2830 eval "${line#* }";
31+ saved_line=
2932 ;;
3033 \#*)
3134 echo Skipping comment: "$line" >&2;
3235 ;;
3336 *_MD5SUM\ :=*)
34− read tbline;
37+ if test -n "$saved_line"; then
38+ tbline="$saved_line"
39+ else
40+ read tbline;
41+ fi;
3542 line=${line##* };
3643 line=${line##*:=};
3744 if [ "${tbline#*VERSION_MICRO}" != "$tbline" ]; then
@@ -59,7 +66,11 @@ while read line; do
5966 name=${line:33};
6067 name="${name%)}"
6168 brief=false;
62− write_entry;
69+ if test -n "$name"; then
70+ write_entry;
71+ else
72+ saved_line="$line";
73+ fi
6374 ;;
6475 *)
6576 echo Skipping: "$line" >&2;