summaryrefslogblamecommitdiffstats
path: root/sysutils/hal/files/pkg-deinstall.in
blob: 96f8e9f919771607bd91b9401635e48c9aa6c46c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                             
#!/bin/sh

[ "$2" != DEINSTALL ] && exit 0

for pair in %%RC_FILES%%; do
    file=`echo $pair | cut -f 1 -d :`
    destdir=`echo $pair | cut -f 2 -d :`

    if cmp -s %%DATADIR%%/dist/$file $destdir/$file; then
        rm -f $destdir/$file
    fi
done