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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user