summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2006-10-09 15:40:08 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2006-10-09 15:40:08 +0000
commit9d94ca02c9d1ced652003b53c641441bec1cc6d4 (patch)
treec19397fee5300730aaaf7cbc1f018f4f41408a47 /lang
parent- Update to 2.1.21 (diff)
Simple portupgrade doesn't upgrade python correctly, so add a check
and an instruction.
Notes
Notes: svn path=/head/; revision=175099
Diffstat (limited to 'lang')
-rw-r--r--lang/python25/Makefile7
-rw-r--r--lang/python26/Makefile7
-rw-r--r--lang/python27/Makefile7
-rw-r--r--lang/python30/Makefile7
-rw-r--r--lang/python31/Makefile7
-rw-r--r--lang/python32/Makefile7
6 files changed, 42 insertions, 0 deletions
diff --git a/lang/python25/Makefile b/lang/python25/Makefile
index 8831de95431e..706e204e5f2d 100644
--- a/lang/python25/Makefile
+++ b/lang/python25/Makefile
@@ -179,6 +179,13 @@ pre-su-install:
.endfor
pre-install:
+ @if [ -f ${PREFIX}/bin/python ]; then \
+ ${ECHO_CMD} "=============================="; \
+ ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \
+ ${ECHO_CMD} "=============================="; \
+ ${FALSE}; \
+ fi
+
${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \
${AWK} '{ print $$0; } \
/LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST}
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index 8831de95431e..706e204e5f2d 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -179,6 +179,13 @@ pre-su-install:
.endfor
pre-install:
+ @if [ -f ${PREFIX}/bin/python ]; then \
+ ${ECHO_CMD} "=============================="; \
+ ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \
+ ${ECHO_CMD} "=============================="; \
+ ${FALSE}; \
+ fi
+
${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \
${AWK} '{ print $$0; } \
/LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST}
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index 8831de95431e..706e204e5f2d 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -179,6 +179,13 @@ pre-su-install:
.endfor
pre-install:
+ @if [ -f ${PREFIX}/bin/python ]; then \
+ ${ECHO_CMD} "=============================="; \
+ ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \
+ ${ECHO_CMD} "=============================="; \
+ ${FALSE}; \
+ fi
+
${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \
${AWK} '{ print $$0; } \
/LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST}
diff --git a/lang/python30/Makefile b/lang/python30/Makefile
index 8831de95431e..706e204e5f2d 100644
--- a/lang/python30/Makefile
+++ b/lang/python30/Makefile
@@ -179,6 +179,13 @@ pre-su-install:
.endfor
pre-install:
+ @if [ -f ${PREFIX}/bin/python ]; then \
+ ${ECHO_CMD} "=============================="; \
+ ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \
+ ${ECHO_CMD} "=============================="; \
+ ${FALSE}; \
+ fi
+
${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \
${AWK} '{ print $$0; } \
/LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST}
diff --git a/lang/python31/Makefile b/lang/python31/Makefile
index 8831de95431e..706e204e5f2d 100644
--- a/lang/python31/Makefile
+++ b/lang/python31/Makefile
@@ -179,6 +179,13 @@ pre-su-install:
.endfor
pre-install:
+ @if [ -f ${PREFIX}/bin/python ]; then \
+ ${ECHO_CMD} "=============================="; \
+ ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \
+ ${ECHO_CMD} "=============================="; \
+ ${FALSE}; \
+ fi
+
${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \
${AWK} '{ print $$0; } \
/LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST}
diff --git a/lang/python32/Makefile b/lang/python32/Makefile
index 8831de95431e..706e204e5f2d 100644
--- a/lang/python32/Makefile
+++ b/lang/python32/Makefile
@@ -179,6 +179,13 @@ pre-su-install:
.endfor
pre-install:
+ @if [ -f ${PREFIX}/bin/python ]; then \
+ ${ECHO_CMD} "=============================="; \
+ ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \
+ ${ECHO_CMD} "=============================="; \
+ ${FALSE}; \
+ fi
+
${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \
${AWK} '{ print $$0; } \
/LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST}