Add newlog.sh and setops.sh to share/mk

jobs.mk makes use of newlog.sh if found.

Set NEWLOG_SH in local.sys.env.mk to save jobs.mk searching for it.

PR:	284390
Reviewed by:	stevek
Differential Revision:	https://reviews.freebsd.org/D48737
This commit is contained in:
Simon J. Gerraty
2025-02-11 09:42:17 -08:00
parent e295e0b8cf
commit e9c2838d93
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -69,8 +69,10 @@ FILES= \
meta.sys.mk \
meta2deps.py \
meta2deps.sh \
${SRCTOP}/contrib/bmake/mk/newlog.sh \
${SRCTOP}/contrib/bmake/mk/posix.mk \
stage-install.sh \
${SRCTOP}/contrib/bmake/mk/setopts.sh \
sys.mk \
sys.dependfile.mk \
sys.dirdeps.mk \
@@ -78,6 +80,11 @@ FILES= \
FILESDIR= ${BINDIR}/mk
# make sure scripts are executable
.for file in ${FILES:M*.sh} ${FILES:M*.py}
FILESMODE_${file} = 555
.endfor
.if ${MK_TESTS} != "no"
FILES+= atf.test.mk
FILES+= googletest.test.inc.mk
+6
View File
@@ -43,6 +43,12 @@ TIME_STAMP_END?= ${TIME_STAMP_DATE}
# error spam and show a proper error.
Mkdirs= Mkdirs() { mkdir -p $$* || :; }
# jobs.mk wants this
.if empty(NEWLOG_SH)
NEWLOG_SH:= ${SRCTOP}/contrib/bmake/mk/newlog.sh
.export NEWLOG_SH
.endif
.if !empty(.MAKEFLAGS:M-s)
ECHO_TRACE?= true
.endif