summaryrefslogtreecommitdiff
path: root/office/mtp2-fonts/doinst.sh
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2017-05-24 08:37:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-05-27 07:30:50 +0700
commit2dbd65dc145dfd420b97ee215e36eab16d28ba0b (patch)
tree1f7ab8510417e3ba7fdadd009e656400ab7150e9 /office/mtp2-fonts/doinst.sh
parent8a4d2708a23f684f4570c341f1e11aa32da12990 (diff)
downloadslackbuilds-2dbd65dc145dfd420b97ee215e36eab16d28ba0b.tar.gz
office/mtp2-fonts: Added (Times-compatible math TeX fonts).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/mtp2-fonts/doinst.sh')
-rw-r--r--office/mtp2-fonts/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/office/mtp2-fonts/doinst.sh b/office/mtp2-fonts/doinst.sh
new file mode 100644
index 0000000000..81b7a9ab11
--- /dev/null
+++ b/office/mtp2-fonts/doinst.sh
@@ -0,0 +1,18 @@
+if [ -x /usr/bin/mktexlsr ]; then
+ if ! grep -qFs " mtpro2.map" /usr/share/texmf-local/web2c/updmap.cfg ; then
+ mkdir -p /usr/share/texmf-local/web2c
+ echo "Map mtpro2.map" >> /usr/share/texmf-local/web2c/updmap.cfg
+ fi
+ chroot . /usr/bin/mktexlsr >/dev/null 2>&1
+ if [ -x /usr/bin/updmap-sys ]; then
+ chroot . /usr/bin/updmap-sys >/dev/null 2>&1
+ fi
+else
+ if [ -x /usr/share/texmf/bin/mktexlsr ]; then
+ chroot . /usr/share/texmf/bin/mktexlsr >/dev/null 2>&1
+ fi
+ if [ -x /usr/share/texmf/bin/updmap-sys ]; then
+ chroot . /usr/share/texmf/bin/updmap-sys --enable Map mtpro2.map \
+ >/dev/null 2>&1
+ fi
+fi