aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-20 02:01:56 +0800
committerbdrewery <bdrewery@FreeBSD.org>2015-10-20 02:01:56 +0800
commitd1ade9669fe231cb463b7c0171776c4b1e62fc05 (patch)
tree7d175bc064951dafdad89f6f25316c5993bd7703 /Mk
parent4f88e881e834d7c42b821863969c1b6705cbb87a (diff)
downloadfreebsd-ports-gnome-d1ade9669fe231cb463b7c0171776c4b1e62fc05.tar.gz
freebsd-ports-gnome-d1ade9669fe231cb463b7c0171776c4b1e62fc05.tar.zst
freebsd-ports-gnome-d1ade9669fe231cb463b7c0171776c4b1e62fc05.zip
When listing dependencies, export the common command execution results.
In some basic benchmarks this sped up 'all-depends-list' about 20%. x11/kde4 went from 52 seconds to 41 seconds. More improvement is expected once more command executions are cached in the 'export_ports_env' function. With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/depends-list.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/Scripts/depends-list.sh b/Mk/Scripts/depends-list.sh
index c4fa8a5d5656..7573d59719ad 100644
--- a/Mk/Scripts/depends-list.sh
+++ b/Mk/Scripts/depends-list.sh
@@ -23,6 +23,8 @@ shift $((OPTIND-1))
validate_env dp_ALLDEPENDS dp_PORTSDIR dp_PKGNAME
[ ${recursive} -eq 1 ] && validate_env dp_MAKE
+MAKE="${dp_MAKE}" PORTSDIR="${dp_PORTSDIR}" export_ports_env >/dev/null
+
set -u
check_dep() {