diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2022-07-15 20:16:16 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-17 06:40:09 +0700 |
commit | eebb40ac3947a5a39f6fa99fa38be614b35a5cdd (patch) | |
tree | e48198431d851275b939c6b4ff027b5eb862640c /office/mtp2-fonts/doinst.sh | |
parent | e28eedb991078c61b6a983d7c333f01f7be2eab8 (diff) | |
download | slackbuilds-eebb40ac3947a5a39f6fa99fa38be614b35a5cdd.tar.gz |
office/mtp2-fonts: Download URL changed, douninst.sh added.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/mtp2-fonts/doinst.sh')
-rw-r--r-- | office/mtp2-fonts/doinst.sh | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/office/mtp2-fonts/doinst.sh b/office/mtp2-fonts/doinst.sh index 81b7a9ab11..690a5f6ef8 100644 --- a/office/mtp2-fonts/doinst.sh +++ b/office/mtp2-fonts/doinst.sh @@ -1,18 +1,3 @@ -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 +chroot . /usr/bin/mktexlsr >/dev/null 2>&1 +chroot . /usr/bin/updmap-sys --force --enable Map=mtpro2.map >/dev/null 2>&1 +chroot . /usr/bin/mktexlsr >/dev/null 2>&1 |