pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/tools



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Fri Oct  7 11:42:51 UTC 2022

Modified Files:
        pkgsrc/mk/tools: create.mk

Log Message:
mk: Avoid unnecessary separate shell invocation.

Reduces number of shells invoked during tools phase by around 100, and improves
performance by around 10%.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/mk/tools/create.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/tools/create.mk
diff -u pkgsrc/mk/tools/create.mk:1.14 pkgsrc/mk/tools/create.mk:1.15
--- pkgsrc/mk/tools/create.mk:1.14      Sun May 10 14:36:18 2020
+++ pkgsrc/mk/tools/create.mk   Fri Oct  7 11:42:51 2022
@@ -1,4 +1,4 @@
-# $NetBSD: create.mk,v 1.14 2020/05/10 14:36:18 rillig Exp $
+# $NetBSD: create.mk,v 1.15 2022/10/07 11:42:51 jperkin Exp $
 #
 # Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -152,8 +152,8 @@ override-tools: ${TOOLS_CMD.${_t_}}
 # probably adding a program to USE_TOOLS that is not a valid tool name.
 # For instance, "split" is handled outside of the tools framework.
 ${TOOLS_CMD.${_t_}}:
-       ${RUN} ${TEST} -d ${.TARGET:H:Q} || ${MKDIR} ${.TARGET:H:Q}
        ${RUN}                                                          \
+       ${TEST} -d ${.TARGET:H:Q} || ${MKDIR} ${.TARGET:H:Q};           \
        if ${TEST} -n ${TOOLS_SCRIPT.${_t_}:Q}""; then                  \
                create=wrapper;                                         \
                script=${TOOLS_SCRIPT.${_t_}:Q};                        \



Home | Main Index | Thread Index | Old Index