freebsd-ports/databases/namazu2/pkg-install
Akinori MUSHA ebc34f6227 Fix a typo that caused cp to fail.
Submitted by: Ayumu Kato <akato@rc5.so-net.ne.jp>
2003-02-01 10:36:05 +00:00

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