aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ispman/pkg-deinstall
blob: 8fc6c660e006338dac6b64dd647e854b599af1b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#

case $2 in
    DEINSTALL)
    # Remove real files which was copied from *.default.
    for i in lib templates; do
        for j in `find ${PKG_PREFIX}/ispman/${i} -name '*.default'`; do
        real=${j%.default}
        cmp -s $j $real && rm -rf $real
        done
    done
    ;;
esac

exit 0