blob: fae5a47c6f59d64abecddd8290ce3b0cf961d9ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
#
# $FreeBSD$
PATH=/bin:/usr/bin
files="${PKG_PREFIX}/lib/charset.alias ${PKG_PREFIX}/share/locale/locale.alias"
sfx=.namazu2.backup
case $2 in
DEINSTALL)
for f in $files; do
[ -f $f$sfx ] || continue
if [ $f -nt $f$sfx ]; then
cp -p $f $f$sfx
fi
done
;;
POST-DEINSTALL)
for f in $files; do
if [ -f $f$sfx ]; then
mv -f $f$sfx $f
fi
done
;;
esac
exit 0
|