Lines 25-39
Link Here
|
25 |
|
25 |
|
26 |
# Major upgrade support |
26 |
# Major upgrade support |
27 |
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade |
27 |
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade |
28 |
PKG_WHICH_CMD= ${LOCALBASE}/sbin/pkg_which |
|
|
29 |
XARGS_CMD= ${XARGS} -0 |
30 |
|
28 |
|
31 |
.if defined(USE_PORTMASTER) |
29 |
.if defined(USE_PORTMASTER) |
32 |
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster |
30 |
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster |
33 |
PORTUPGRADE_ARGS?= "" |
|
|
34 |
PKG_WHICH_CMD= /usr/sbin/pkg_info -qW |
35 |
JOBS= ${SYSCTL} -n kern.smp.cpus |
36 |
XARGS_CMD= ${XARGS} -L 1 -0 -P $$(${JOBS}) |
37 |
.endif |
31 |
.endif |
38 |
|
32 |
|
39 |
upgrade-site-packages: |
33 |
upgrade-site-packages: |
Lines 42-63
Link Here
|
42 |
${FALSE}; \ |
36 |
${FALSE}; \ |
43 |
fi |
37 |
fi |
44 |
|
38 |
|
45 |
@for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \ |
39 |
@GREP_ARGS="-q"; \ |
46 |
if [ -d ${PREFIX}/lib/python$$ver ]; then \ |
40 |
for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \ |
47 |
UPD=`${FIND} ${PREFIX}/lib/python$$ver \ |
41 |
GREP_ARGS="$${GREP_ARGS} -e lib/python$$ver"; \ |
48 |
-type f -print0 | \ |
42 |
done; \ |
49 |
${XARGS_CMD} ${PKG_WHICH_CMD} | \ |
43 |
UPD=""; \ |
50 |
${GREP} -Fv '?' | \ |
44 |
for pkg in `${PKG_INFO} -Ea`; do \ |
51 |
${EGREP} -v '^python2?[0-5]?-2' | \ |
45 |
${PKG_INFO} -L $${pkg} | ${GREP} $${GREP_ARGS} && \ |
52 |
${SORT} -u`; \ |
46 |
UPD="$${UPD} $${pkg}"; \ |
53 |
if [ "$$UPD" ]; then \ |
47 |
done; \ |
54 |
if [ -n ${PORTUPGRADE_ARGS} ]; then \ |
48 |
if [ "$${UPD}" ]; then \ |
55 |
${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $$UPD; \ |
49 |
if [ -n ${PORTUPGRADE_ARGS} ]; then \ |
56 |
else \ |
50 |
${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $${UPD}; \ |
57 |
${PORTUPGRADE_CMD} -f $$UPD; \ |
51 |
else \ |
58 |
fi; \ |
52 |
${PORTUPGRADE_CMD} -f $${UPD}; \ |
59 |
fi; \ |
|
|
60 |
fi; \ |
53 |
fi; \ |
61 |
done \ |
54 |
fi; \ |
62 |
|
55 |
|
63 |
.include <bsd.port.mk> |
56 |
.include <bsd.port.mk> |