[Midnightbsd-cvs] mports [20145] trunk/Mk/extensions/python.mk: use @dir
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Aug 30 12:56:44 EDT 2015
Revision: 20145
http://svnweb.midnightbsd.org/mports/?rev=20145
Author: laffer1
Date: 2015-08-30 12:56:43 -0400 (Sun, 30 Aug 2015)
Log Message:
-----------
use @dir
Modified Paths:
--------------
trunk/Mk/extensions/python.mk
Modified: trunk/Mk/extensions/python.mk
===================================================================
--- trunk/Mk/extensions/python.mk 2015-08-30 16:56:19 UTC (rev 20144)
+++ trunk/Mk/extensions/python.mk 2015-08-30 16:56:43 UTC (rev 20145)
@@ -607,9 +607,9 @@
add-plist-post:
@${AWK} '\
/\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \
- /^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
+ /^@dir / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
{print} \
- END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \
+ END {if (sp in dirs) {print "@dir " sp "/" pc}} \
' \
pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \
${TMPPLIST} > ${TMPPLIST}.pyc_tmp
More information about the Midnightbsd-cvs
mailing list