freebsd-ports/devel/py-setuptools/files/pkg-install.in
Michael Scheidell 3c7099b027 - Fixes: easy-install.pth contents lost on upgrade clobbering ports using it
PR:		ports/118301
Submitted by:	Douglas William Thrift <douglas@douglasthrift.net>
Approved by:	lars.eggert@nokia.com (maintainer, timeout 3 years), gabor (mentor)
2012-01-06 16:36:03 +00:00

24 lines
412 B
Bash

#!/bin/sh
EASYINSTALL_PTH=%%EASYINSTALL_PTH%%
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
if [ -f ${EASYINSTALL_PTH} ]; then
mv ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.tmp
fi
;;
POST-INSTALL)
if [ -f ${EASYINSTALL_PTH}.tmp ]; then
mv ${EASYINSTALL_PTH}.tmp ${EASYINSTALL_PTH}
fi
;;
esac
exit 0