aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/cwtex/pkg-deinstall
blob: f7397f2f5338d1b524b32d053e1a414cc896bd50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Run just once.
if [ "x$2" != "xDEINSTALL" ]; then
  exit 0
fi

TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
PSFONTSMAP=${TEXMFMAIN}/dvips/config/config.ps

# Edit dvips/config/config.ps
sed -e /%cwtex_begin/,/%cwtex_end/d $PSFONTSMAP > $PSFONTSMAP.tmp
mv -f $PSFONTSMAP.tmp $PSFONTSMAP