get rid of old style `` command substitution in shell and use $() instead.

This commit is contained in:
christos 2022-03-29 22:48:04 +00:00
parent f1d8378e1e
commit fdd8676a97
7 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.inc.mk,v 1.33 2018/12/26 22:57:22 christos Exp $
# $NetBSD: bsd.inc.mk,v 1.34 2022/03/29 22:48:04 christos Exp $
.include <bsd.init.mk>
@ -45,7 +45,7 @@ inclinkinstall: .PHONY
while test $$# -ge 2; do \
l=$$1; shift; \
t=${DESTDIR}$$1; shift; \
if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \
if ttarg=$$(${TOOL_STAT} -qf '%Y' $$t) && \
[ "$$l" = "$$ttarg" ]; then \
continue ; \
fi ; \

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.kinc.mk,v 1.37 2018/12/26 22:57:22 christos Exp $
# $NetBSD: bsd.kinc.mk,v 1.38 2022/03/29 22:48:04 christos Exp $
# Variables:
#
@ -68,7 +68,7 @@ incinstall::
while test $$# -ge 2; do \
l=$$1; shift; \
t=${DESTDIR}$$1; shift; \
if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \
if ttarg=$$(${TOOL_STAT} -qf '%Y' $$t) && \
[ "$$l" = "$$ttarg" ]; then \
continue ; \
fi ; \

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.kmodule.mk,v 1.76 2021/03/29 05:22:49 simonb Exp $
# $NetBSD: bsd.kmodule.mk,v 1.77 2022/03/29 22:48:04 christos Exp $
# We are not building this with PIE
MKPIE=no
@ -149,8 +149,8 @@ ${KMOD}_tmp.o: ${OBJS} ${DPADD}
${_MKTARGET_LINK}
${LD} -r -o tmp.o ${OBJS}
${LD} -r \
`${OBJDUMP} --syms --reloc tmp.o | \
${TOOL_AWK} -f ${ARCHDIR}/kmodwrap.awk` \
$$(${OBJDUMP} --syms --reloc tmp.o | \
${TOOL_AWK} -f ${ARCHDIR}/kmodwrap.awk) \
-o ${.TARGET} tmp.o
${KMOD}_tramp.S: ${KMOD}_tmp.o ${ARCHDIR}/kmodtramp.awk ${ASM_H}
@ -166,7 +166,7 @@ ${PROG}: ${KMOD}_tmp.o ${KMOD}_tramp.o
${LD} -r -Map=${.TARGET}.map \
-o tmp.o ${KMOD}_tmp.o ${KMOD}_tramp.o
${OBJCOPY} \
`${NM} tmp.o | ${TOOL_AWK} -f ${ARCHDIR}/kmodhide.awk` \
$$(${NM} tmp.o | ${TOOL_AWK} -f ${ARCHDIR}/kmodhide.awk) \
tmp.o ${.TARGET} && \
rm tmp.o
.else

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.388 2021/11/28 15:47:33 christos Exp $
# $NetBSD: bsd.lib.mk,v 1.389 2022/03/29 22:48:04 christos Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@ -534,7 +534,7 @@ _INSTRANLIB=${empty(PRESERVE):?-a "${RANLIB} -t":}
__archivebuild: .USE
${_MKTARGET_BUILD}
@rm -f ${.TARGET}
${AR} ${_ARFL} ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
${AR} ${_ARFL} ${.TARGET} $$(NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT})
.endif
.if !target(__archiveinstall)
@ -552,7 +552,7 @@ __archivesymlinkpic: .USE
__buildstdlib: .USE
@echo building standard ${.TARGET:T:S/.o//:S/lib//} library
@rm -f ${.TARGET}
@${LINK.c:S/-nostdinc//} -nostdlib ${LDFLAGS} -Wno-unused-command-line-argument -r -o ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
@${LINK.c:S/-nostdinc//} -nostdlib ${LDFLAGS} -Wno-unused-command-line-argument -r -o ${.TARGET} $$(NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT})
.endif
.if !target(__buildproflib)
@ -560,7 +560,7 @@ __buildproflib: .USE
@echo building profiled ${.TARGET:T:S/.o//:S/lib//} library
${_MKTARGET_BUILD}
@rm -f ${.TARGET}
@${LINK.c:S/-nostdinc//} -nostdlib ${LDFLAGS} -r -o ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*po} | ${TSORT}`
@${LINK.c:S/-nostdinc//} -nostdlib ${LDFLAGS} -r -o ${.TARGET} $$(NM=${NM} ${LORDER} ${.ALLSRC:M*po} | ${TSORT})
.endif
DPSRCS+= ${_YLSRCS}

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.links.mk,v 1.34 2009/04/10 16:16:12 apb Exp $
# $NetBSD: bsd.links.mk,v 1.35 2022/03/29 22:48:04 christos Exp $
.include <bsd.init.mk>
@ -33,7 +33,7 @@ linksinstall:: realinstall
while test $$# -ge 2; do \
l=$$1; shift; \
t=${DESTDIR}$$1; shift; \
if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \
if ttarg=$$(${TOOL_STAT} -qf '%Y' $$t) && \
[ "$$l" = "$$ttarg" ]; then \
continue ; \
fi ; \
@ -67,7 +67,7 @@ configlinksinstall:: configfilesinstall
while test $$# -ge 2; do \
l=$$1; shift; \
t=${DESTDIR}$$1; shift; \
if ttarg=`${TOOL_STAT} -qf '%Y' $$t` && \
if ttarg=$$(${TOOL_STAT} -qf '%Y' $$t) && \
[ "$$l" = "$$ttarg" ]; then \
continue ; \
fi ; \

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.obj.mk,v 1.52 2018/05/19 14:11:30 christos Exp $
# $NetBSD: bsd.obj.mk,v 1.53 2022/03/29 22:48:04 christos Exp $
.if !defined(_BSD_OBJ_MK_)
_BSD_OBJ_MK_=1
@ -70,7 +70,7 @@ __need_objdir_target=yes
obj:
@cd "${__curdir}"; \
here=`${PAWD}`/; subdir=$${here#${BSDSRCDIR}/}; \
here=$$(${PAWD})/; subdir=$${here#${BSDSRCDIR}/}; \
if [ "$$here" != "$$subdir" ]; then \
if [ ! -d ${__usrobjdir} ]; then \
echo "BSDOBJDIR ${__usrobjdir} does not exist, bailing..."; \
@ -79,7 +79,7 @@ obj:
subdir=$${subdir%/}; \
dest=${__usrobjdir}/$$subdir${__usrobjdirpf}; \
if [ -x ${TOOL_STAT} ] && \
ttarg=`${TOOL_STAT} -qf '%Y' $${here}${__objdir}` && \
ttarg=$$(${TOOL_STAT} -qf '%Y' $${here}${__objdir}) && \
[ "$$dest" = "$$ttarg" ]; then \
: ; \
else \

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1275 2022/03/17 06:24:30 mrg Exp $
# $NetBSD: bsd.own.mk,v 1.1276 2022/03/29 22:48:04 christos Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -238,7 +238,7 @@ PRINTOBJDIR= echo /error/bsd.own.mk/PRINTOBJDIR # avoid infinite recursion
#
.if !defined(_SRC_TOP_) # {
_SRC_TOP_!= cd "${.CURDIR}"; while :; do \
here=`pwd`; \
here=$$(pwd); \
[ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \
case $$here in /) echo ""; break;; esac; \
cd ..; done