SOURCE_URL[0]=ftp://tug.org/historic/systems/texlive/${VERSION:0:4}/${SOURCE}
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/texlive-${VERSION:0:8}-texmf"
diff --git a/latex/texlive-texmf/HISTORY b/latex/texlive-texmf/HISTORY
index 67eaeb6..c2844ac 100644
--- a/latex/texlive-texmf/HISTORY
+++ b/latex/texlive-texmf/HISTORY
@@ -1,3 +1,7 @@
+2021-01-11 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: updated spell to 20200406
+ * PRE_BUILD: optimized pre-built PDF removal
+
2019-05-01 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 20190410
diff --git a/latex/texlive-texmf/PRE_BUILD b/latex/texlive-texmf/PRE_BUILD
index 4c18686..6cae5d6 100755
--- a/latex/texlive-texmf/PRE_BUILD
+++ b/latex/texlive-texmf/PRE_BUILD
@@ -6,10 +6,10 @@ apply_patch_dir patches &&
# find all the pdfs, strip the extension and then check if their source is
# also present. If it is, remove the pdf.
if [[ $TTMF_SMALL == y ]]; then
- find "$SOURCE_DIRECTORY" -type f -iname "*.pdf" | sed 's,....$,,' |
+ find "$SOURCE_DIRECTORY" -name "*.pdf" |
while read p; do
- if [[ -e "$p.pdf" && -e "$p.tex" ]]; then
- rm "$p.pdf"
+ if [[ -e "${p%pdf}tex" ]]; then
+ rm "$p"
fi
done
fi
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (8aff9b9cd79bcd411464e341d322937e9c5cc034),
Ismael Luceno, 01/11/2021