POSTIN
/bin/sh
/etc/cron.weekly/makewhatis-zh_CN.GB2312.cron
/etc/cron.weekly/makewhatis-zh_TW.Big5.cron
touch /usr/share/man/zh_CN.GB2312/whatis
touch /usr/share/man/zh_TW.Big5/whatis
POSTUN
/bin/sh
# 0 means deleting the package
if [ "$1" = "0" ]; then
## Force removing of /var/catman/zh_CN.GB2312, if there isn't any man page
## directory //usr/share/man/zh_CN.GB2312
if [ ! -d //usr/share/man/zh_CN.GB2312 ] ; then
rm -rf /var/catman/zh_CN.GB2312
fi
## Force removing of /var/catman/zh_TW.Big5, if there isn't any man page
## directory //usr/share/man/zh_TW.Big5
if [ ! -d //usr/share/man/zh_TW.Big5 ] ; then
rm -rf /var/catman/zh_TW.Big5
fi
fi