diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-04-28 10:32:09 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-04-29 19:31:28 +0200 |
commit | ac62beddba2f03695f0d2a223c6f6463713b4e41 (patch) | |
tree | 51d252b430e4af7c714c41463c2c0a84a3e50500 /eclass/texlive-common.eclass | |
parent | media-video/libva-utils: Stabilize 2.21.0 ppc64, #930935 (diff) | |
download | gentoo-ac62beddba2f03695f0d2a223c6f6463713b4e41.tar.gz gentoo-ac62beddba2f03695f0d2a223c6f6463713b4e41.tar.bz2 gentoo-ac62beddba2f03695f0d2a223c6f6463713b4e41.zip |
texlive-common.eclass: add newline between tlpobj entries in tlpdb
We previously created the texlive.tlpdb by concatenating all tlpobj
files. This means that the entries will be right after another.
As it turns out, some TeX Live tools require a newline (e.g., tlmgr)
between the entries, while others do not (e.g., texdoc). And the
"official" tlpdb also has the entries separated by newlines. Therefore
this changes texlive-common_update_tlpdb() to also add them.
Thanks to ulm for showing how this can be done with sed.
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Thanks-to: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/texlive-common.eclass')
-rw-r--r-- | eclass/texlive-common.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index b32ea2af1121..15d475799a88 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -270,9 +270,11 @@ texlive-common_update_tlpdb() { touch "${new_tlpdb}" || die if [[ -d "${tlpobj}" ]]; then + # The "sed -s '$G' below concatenates all tlpobj files separated + # by a newline. find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 | sort -z | - xargs -0 --no-run-if-empty cat >> "${new_tlpdb}" + xargs -0 --no-run-if-empty sed -s '$G' >> "${new_tlpdb}" assert "generating tlpdb failed" fi |