summaryrefslogtreecommitdiff
path: root/libre/texlive-bin/texlive-fmtutil.script
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-21 21:54:27 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-22 01:30:20 -0300
commit478400cf70c1926aacbc23fa8fb70fbaaae07ef0 (patch)
tree29b1c279de914b8d87601d9f657181748b1bf4fd /libre/texlive-bin/texlive-fmtutil.script
parent3b827ffb6adacb8d97f464e6fe35e16c33a5f0af (diff)
texlive-bin-2016.41290-8.parabola1: add hook for format regeneration
Diffstat (limited to 'libre/texlive-bin/texlive-fmtutil.script')
-rw-r--r--libre/texlive-bin/texlive-fmtutil.script19
1 files changed, 19 insertions, 0 deletions
diff --git a/libre/texlive-bin/texlive-fmtutil.script b/libre/texlive-bin/texlive-fmtutil.script
new file mode 100644
index 000000000..0e3b94393
--- /dev/null
+++ b/libre/texlive-bin/texlive-fmtutil.script
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+FMTUTIL="etc/texmf/web2c/fmtutil.cnf"
+FMTUTILLOCAL="etc/texmf/web2c/fmtutil-local.cnf"
+
+cp usr/share/texmf-dist/web2c/fmtutil-hdr.cnf $FMTUTIL
+for file in var/lib/texmf/arch/installedpkgs/*.fmts; do
+ echo >> $FMTUTIL
+ echo "# $file" >> $FMTUTIL
+ cat $file >> $FMTUTIL
+done
+if [[ -f "$FMTUTILLOCAL" ]]; then
+ echo >> $FMTUTIL
+ echo "# $FMTUTILLOCAL" >> $FMTUTIL
+ cat "$FMTUTILLOCAL" >> $FMTUTIL
+fi
+
+/usr/bin/fmtutil-sys --all --cnffile $FMTUTIL > /dev/null
+