ebc34f6227
Submitted by: Ayumu Kato <akato@rc5.so-net.ne.jp>
30 lines
391 B
Bash
30 lines
391 B
Bash
#!/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
|
|
PRE-INSTALL)
|
|
for f in $files; do
|
|
if [ -f $f ]; then
|
|
cp $f $f$sfx
|
|
fi
|
|
done
|
|
;;
|
|
|
|
POST-INSTALL)
|
|
for f in $files; do
|
|
if [ -f $f$sfx ]; then
|
|
touch $f$sfx
|
|
else
|
|
cp $f $f$sfx
|
|
fi
|
|
done
|
|
;;
|
|
esac
|
|
|
|
exit 0
|