diff options
author | Foxfair Hu <foxfair@FreeBSD.org> | 1999-10-19 08:07:46 +0000 |
---|---|---|
committer | Foxfair Hu <foxfair@FreeBSD.org> | 1999-10-19 08:07:46 +0000 |
commit | 8aab7760b3e579111e7fefa71768afd86a321cbe (patch) | |
tree | 3cf8f3cfa56c844e3cb242497a00b36b928c3bdd /chinese/arphicttf/pkg-deinstall | |
parent | 944bcef8cd24a709e95a179d425c2467499c3158 (diff) |
Notes
Diffstat (limited to 'chinese/arphicttf/pkg-deinstall')
-rw-r--r-- | chinese/arphicttf/pkg-deinstall | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chinese/arphicttf/pkg-deinstall b/chinese/arphicttf/pkg-deinstall new file mode 100644 index 000000000000..ed6e4ba2c642 --- /dev/null +++ b/chinese/arphicttf/pkg-deinstall @@ -0,0 +1,17 @@ +#!/bin/sh +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi +FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType +cd ${FONTDIR} + +# Restore fonts.dir +sed -e '/ -ar-/d' -e '/ -arphic-/d' fonts.dir > fonts.dir.tmp +numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc) +echo ${numfonts} > fonts.dir +sed -e 1d fonts.dir.tmp >> fonts.dir +rm -f fonts.dir.tmp + +# Restore fonts.alias +sed -e '/^-ar-/d' -e '/^-arphic-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias |