summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-04-30 10:16:14 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-04-30 10:16:44 +0200
commitd27a512b8f11a2aa7618046dc9aae04d486195b1 (patch)
tree196510a18634170cac565cd678eb3c762b859e7c
parentuse 2> instead of &> (diff)
downloadtex-overlay-d27a512b8f11a2aa7618046dc9aae04d486195b1.tar.gz
tex-overlay-d27a512b8f11a2aa7618046dc9aae04d486195b1.tar.bz2
tex-overlay-d27a512b8f11a2aa7618046dc9aae04d486195b1.zip
texlive-common.eclass: sync
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r--eclass/texlive-common.eclass20
1 files changed, 11 insertions, 9 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 9cbb81b..15d4757 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -199,11 +199,9 @@ etexmf-update() {
efmtutil-sys() {
if has_version 'app-text/texlive-core' ; then
if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/bin/fmtutil-sys ]] ; then
- ebegin "Rebuilding TexLive formats"
- "${EPREFIX}"/usr/bin/fmtutil-sys --all \
- > "${T}"/fmutil-sys-all.log \
- 2> "${T}"/fmutil-sys-all.err.log
- eend $? || die -n "fmtutil-sys returned non-zero exit status ${?}"
+ einfo "Rebuilding formats"
+ "${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null ||
+ die -n "fmtutil-sys returned non-zero exit status ${?}"
else
ewarn "Cannot run fmtutil-sys for some reason."
ewarn "Your formats might be inconsistent with your installed ${PN} version"
@@ -271,10 +269,14 @@ texlive-common_update_tlpdb() {
touch "${new_tlpdb}" || die
- find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 |
- sort -z |
- xargs -0 --no-run-if-empty cat >> "${new_tlpdb}"
- assert "generating tlpdb failed"
+ 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 sed -s '$G' >> "${new_tlpdb}"
+ assert "generating tlpdb failed"
+ fi
if [[ -f ${tlpdb} ]]; then
cmp -s "${new_tlpdb}" "${tlpdb}"