diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-10-20 02:41:01 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-10-20 02:41:01 +0800 |
commit | d302c88d981741ebf4ac1b75123521968d7b5171 (patch) | |
tree | b74bd414ad8bd6c82ed41b8a80677ecbb302d891 /Mk | |
parent | 966a0be6134c58fa6e1dc56a7c6a4dec5835fc51 (diff) | |
download | freebsd-ports-gnome-d302c88d981741ebf4ac1b75123521968d7b5171.tar.gz freebsd-ports-gnome-d302c88d981741ebf4ac1b75123521968d7b5171.tar.zst freebsd-ports-gnome-d302c88d981741ebf4ac1b75123521968d7b5171.zip |
The command environment from r399703 is only needed if recursing.
With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Scripts/depends-list.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Mk/Scripts/depends-list.sh b/Mk/Scripts/depends-list.sh index 7573d59719ad..d5cf1c67ec49 100644 --- a/Mk/Scripts/depends-list.sh +++ b/Mk/Scripts/depends-list.sh @@ -21,9 +21,12 @@ done 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 +if [ ${recursive} -eq 1 ]; then + validate_env dp_MAKE + # Cache command executions to avoid looking them up again in every + # sub-make. + MAKE="${dp_MAKE}" PORTSDIR="${dp_PORTSDIR}" export_ports_env >/dev/null +fi set -u |