summaryrefslogtreecommitdiffstats
path: root/latex
diff options
context:
space:
mode:
authorIsmael Luceno2020-08-21 20:08:01 +0200
committerIsmael Luceno2020-08-21 20:08:01 +0200
commit50e3eaea79afdc9eecc32cb86e7f38194f5172e5 (patch)
treef10507cdc008dd418f52e64996912c2c8e9a35e5 /latex
parentb0ce2a2c76a18b30f1a2a6a4aca87013673da4b9 (diff)
texlive: Optimize data installation prefix patching
Use a single instance of find, and patch as many files at once as possible.
Diffstat (limited to 'latex')
-rw-r--r--latex/texlive/HISTORY1
-rwxr-xr-xlatex/texlive/PRE_BUILD8
2 files changed, 5 insertions, 4 deletions
diff --git a/latex/texlive/HISTORY b/latex/texlive/HISTORY
index 0577b2664c..fe433f7a48 100644
--- a/latex/texlive/HISTORY
+++ b/latex/texlive/HISTORY
@@ -1,5 +1,6 @@
2020-08-21 Ismael Luceno <ismael@sourcemage.org>
* BUILD: Fixed build with binutils >= 2.35
+ * PRE_BUILD: Optimized data installation prefix patching
2019-08-13 Pavel Vinogradov <public@sourcemage.org>
* DEPENDS: needs ghostscript with libgs
diff --git a/latex/texlive/PRE_BUILD b/latex/texlive/PRE_BUILD
index 9bc0d8298a..882049d2dd 100755
--- a/latex/texlive/PRE_BUILD
+++ b/latex/texlive/PRE_BUILD
@@ -55,10 +55,10 @@ echo '%:;echo $@ target suppressed' > Makefile
done &&
# Use /usr/share/texmf and /usr/share/texmf-dist, adapted from lunarlinux
-find -name Makefile\* -exec sed -i -e "s:\(\$.\)prefix\(./tex\):\1datadir\2:" {} \; &&
-find -name configure -exec sed -i -e "s:\(\$.\)prefix\(./tex\):\1datadir\2:" {} \; &&
-find -name \*.info -exec sed -i -e "s:/usr/local:/usr:" {} \; &&
-find -name \*.texi -exec sed -i -e "s:/usr/local:/usr:" {} \; &&
+find \( -name Makefile\* -o -name configure \) \
+ -exec sed -i -e "s:\(\$.\)prefix\(./tex\):\1datadir\2:" {} + \
+ -o \( -name \*.info -o -name \*.texi \) \
+ -exec sed -i -e "s:/usr/local:/usr:" {} + &&
# Patch paths in texmf.cnf
sedit '