svn commit: r399710 - head/Mk/Scripts

Bryan Drewery bdrewery at FreeBSD.org
Mon Oct 19 18:41:03 UTC 2015


Author: bdrewery
Date: Mon Oct 19 18:41:01 2015
New Revision: 399710
URL: https://svnweb.freebsd.org/changeset/ports/399710

Log:
  The command environment from r399703 is only needed if recursing.
  
  With hat:	portmgr

Modified:
  head/Mk/Scripts/depends-list.sh

Modified: head/Mk/Scripts/depends-list.sh
==============================================================================
--- head/Mk/Scripts/depends-list.sh	Mon Oct 19 18:38:58 2015	(r399709)
+++ head/Mk/Scripts/depends-list.sh	Mon Oct 19 18:41:01 2015	(r399710)
@@ -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
 


More information about the svn-ports-head mailing list