mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
d9b9406833
ChiTeX/ChiLaTeX let you use Chinese Big5 codes in TeX/LaTeX documents PR: 32488 Submitted by: Statue <statue@softwareliberty.org>
31 lines
807 B
Bash
31 lines
807 B
Bash
#!/bin/sh
|
|
|
|
# Run just once.
|
|
if [ "x$2" != "xDEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
|
|
SPECIALMAP=${TEXMFMAIN}/fontname/special.map
|
|
PSFONTSMAP=${TEXMFMAIN}/dvips/config/psfonts.map
|
|
PDFTEXMAP=${TEXMFMAIN}/dvips/config/pdftex.map
|
|
|
|
# Edit fontname/special.map
|
|
sed -e /@c\ chinese\ fonts\ begin/,/@c\ chinese\ fonts\ end/d $SPECIALMAP > $SPECIALMAP.tmp
|
|
mv -f $SPECIALMAP.tmp $SPECIALMAP
|
|
|
|
# Edit dvips/config/psfonts.map
|
|
sed -e /%Wafonts\ begin/,/%Wafonts\ end/d $PSFONTSMAP > $PSFONTSMAP.tmp
|
|
mv -f $PSFONTSMAP.tmp $PSFONTSMAP
|
|
|
|
# Edit dvips/config/pdftex.map
|
|
sed -e /%Wafonts\ begin/,/%Wafonts\ end/d $PDFTEXMAP > $PDFTEXMAP.tmp
|
|
mv -f $PDFTEXMAP.tmp $PDFTEXMAP
|
|
|
|
#
|
|
# Update ls-R. We have to run twice to get correct result.
|
|
# Strange bug of texconfig.
|
|
#
|
|
texconfig rehash
|
|
texconfig rehash
|