Makefile.inc1: Fix bare $ characters

The '$' characters inside awk commands need to be $$ when appearing
inside a Makefile.  Without this, we generate empty src and src-sys
packages.

Reported by:	Stefan Grundmann
Fixes:		a8be899289 ("build: Support got")
MFC after:	1 day
This commit is contained in:
Colin Percival committed 2026-11-03 11:37:29 -07:00
1 parent 28d8abeaa5
commit 6a99232c75
1 file changed
+2 -2
+2 -2
View File
@@ -2238,7 +2238,7 @@ create-source-src-package: _pkgbootstrap .PHONY
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GOT_CMD} tree -R | \
awk '/^sys\// { next } { sub(/ -> .*/, "") } /\/$/ { next } { sub(/[*@$]$/, "") } { print }' | \
awk '/^sys\// { next } { sub(/ -> .*/, "") } /\/$$/ { next } { sub(/[*@$$]$$/, "") } { print }' | \
sort ) \
> ${SSTAGEDIR}/src.plist
.endif
@@ -2274,7 +2274,7 @@ create-source-src-sys-package: _pkgbootstrap .PHONY
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GOT_CMD} tree -R | \
awk '!/^sys\// { next } { sub(/ -> .*/, "") } /\/$/ { next } { sub(/[*@$]$/, "") } { print }' | \
awk '!/^sys\// { next } { sub(/ -> .*/, "") } /\/$$/ { next } { sub(/[*@$$]$$/, "") } { print }' | \
sort ) \
> ${SSTAGEDIR}/src-sys.plist
.endif