pre_install() { cat >> /usr/share/texmf-config/web2c/updmap.cfg <>> texlive: updating the filename database..." texconfig-sys rehash echo ">>> texlive: updating the fontmap files with updmap..." updmap-sys --quiet --nohash echo " done." } post_upgrade() { echo ">>> texlive: updating the filename database..." texconfig-sys rehash echo ">>> texlive: updating the fontmap files with updmap..." updmap-sys --quiet --nohash echo " done." } pre_remove() { MAPS="Acorn.map AnnSton.map antp.map antt.map archaicprw.map arev.map ArtNouvc.map ArtNouv.map ascii.map augie.map auncial.map aurical.map belleek.map bera.map Carrickc.map cmin.map cm-lgc.map cyklop.map dictsym.map dstroke.map Eichenla.map EileenBl.map Eileen.map Elzevier.map epigrafica.map esvect.map foekfont.map fonetika.map fourier.map fourier-utopia-expert.map gfsartemisia.map gfsbodoni.map gfscomplutum.map gfsdidot.map gfsneohellenic.map gfssolomos.map GotIn.map GoudyIn.map icelandic.map iwona.map Kinigcap.map Konanur.map kpfonts.map Kramer.map kurier.map libertine.map linearA.map mdbch.map mdput.map mdugm.map MnSymbol.map MorrisIn.map Nouveaud.map pbsi.map phaistos.map Romantik.map Rothdn.map RoyalIn.map Sanremo.map slantcm.map Starburst.map troff-updmap.map Typocaps.map uaq.map ugq.map yfrak.map Zallman.map allrunes.map cmll.map cm-super-t1.map cm-super-t2a.map cm-super-t2b.map cm-super-t2c.map cm-super-ts1.map cm-super-x2.map hfbright.map lxfonts.map semaf.map trajan.map" for m in $MAPS; do sed -i "/^M.\+$m/d" /usr/share/texmf-config/web2c/updmap.cfg ; done } post_remove() { echo ">>> texlive: updating the filename database..." texconfig-sys rehash echo ">>> texlive: updating the fontmap files with updmap..." updmap-sys --quiet --nohash echo " done." }