git: 76c100d63458 - main - etc: Fix distrib-dirs to not rely on a BSDism
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Jul 2022 22:18:03 UTC
The branch main has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=76c100d6345884d2deea5b334f4a2b0bf412f877
commit 76c100d6345884d2deea5b334f4a2b0bf412f877
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2022-07-15 22:04:16 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-07-15 22:04:16 +0000
etc: Fix distrib-dirs to not rely on a BSDism
FreeBSD and macOS have a test that treats == as an alias for =, but
Linux tends to use GNU coreutils (when not a builtin) which does not.
Use the standard syntax instead for compatibility.
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D35811
---
etc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/Makefile b/etc/Makefile
index 6a93f1cdbad3..c465596de3a0 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -145,7 +145,7 @@ distrib-dirs: ${MTREES:N/*} distrib-cleanup .PHONY
.for _m _d in ${MTREES}
@m=${.CURDIR}/${_m}; \
d=${_d}; \
- test "$$d" == "/" && d=""; \
+ test "$$d" = "/" && d=""; \
d=${DISTBASE}$$d; \
test -d ${DESTDIR}/$$d || mkdir -p ${DESTDIR}/$$d; \
${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K all | " \