diff options
author | alexbl <alexbl@FreeBSD.org> | 2007-07-31 16:28:32 +0000 |
---|---|---|
committer | alexbl <alexbl@FreeBSD.org> | 2007-07-31 16:28:32 +0000 |
commit | 2ab650eba7eacf347d637cb7bdff0e2415dc50e0 (patch) | |
tree | be83dee6c1001d11f007532baa2a8eaf189ea398 /lang | |
parent | 2b9a8b93d5e27f849712d5b4a93e0729a44811a3 (diff) | |
download | FreeBSD-ports-2ab650eba7eacf347d637cb7bdff0e2415dc50e0.zip FreeBSD-ports-2ab650eba7eacf347d637cb7bdff0e2415dc50e0.tar.gz |
- use PORTUPGRADE_CMD instead of PORTUPGRADE so as not to confict with the
portupgrade env variable
Pointed out by: Miroslav Lachman <000.fbsd@quip.cz>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile index 3b3a59f..b9625ef 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -24,10 +24,10 @@ do-install: @${DO_NADA} # Major upgrade support -PORTUPGRADE?= ${LOCALBASE}/sbin/portupgrade -PKG_WHICH?= ${LOCALBASE}/sbin/pkg_which +PORTUPGRADE_CMD?= ${LOCALBASE}/sbin/portupgrade +PKG_WHICH_CMD?= ${LOCALBASE}/sbin/pkg_which upgrade-site-packages: - @if [ ! -x ${PORTUPGRADE} ]; then \ + @if [ ! -x ${PORTUPGRADE_CMD} ]; then \ ${ECHO_MSG} "Please install ports-mgmt/portupgrade."; \ ${FALSE}; \ fi @@ -36,12 +36,12 @@ upgrade-site-packages: if [ -d ${PREFIX}/lib/python$$ver ]; then \ UPD=`${FIND} ${PREFIX}/lib/python$$ver \ -type f -print0 | \ - ${XARGS} -0 ${PKG_WHICH} | \ + ${XARGS} -0 ${PKG_WHICH_CMD} | \ ${GREP} -Fv '?' | \ ${EGREP} -v '^python2?[0-5]?-2' | \ ${SORT} -u`; \ if [ "$$UPD" ]; then \ - ${PORTUPGRADE} -f $$UPD; \ + ${PORTUPGRADE_CMD} -f $$UPD; \ fi; \ fi; \ done \ |