PKGBUILDs/community/texlive-langcjk-doc/texlive.install
2009-10-09 21:15:33 -05:00

58 lines
1.1 KiB
Text

pre_install() {
cat >> /usr/share/texmf-config/web2c/updmap.cfg <<EOF
Map bkaiu.map
Map bsmiu.map
Map gbsnu.map
Map gkaiu.map
Map garuda.map
Map norasi.map
Map umj.map
Map dgj.map
Map dmj.map
Map mc2j.map
Map mcj.map
Map mr2j.map
Map mrj.map
EOF
}
post_install() {
echo ">>> 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="bkaiu.map
bsmiu.map
gbsnu.map
gkaiu.map
garuda.map
norasi.map
umj.map
dgj.map
dmj.map
mc2j.map
mcj.map
mr2j.map
mrj.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."
}