aboutsummaryrefslogtreecommitdiffstats
path: root/etc/Makefile
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2022-07-15 23:04:16 +0100
committerJessica Clarke <jrtc27@FreeBSD.org>2022-07-15 23:04:16 +0100
commit76c100d6345884d2deea5b334f4a2b0bf412f877 (patch)
tree473e64da26530f3cf935a4c72db876b19b7452f3 /etc/Makefile
parent445421abc914536d6c36327a5dd1d1cd71e55a15 (diff)
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
Diffstat (limited to 'etc/Makefile')
-rw-r--r--etc/Makefile2
1 files changed, 1 insertions, 1 deletions
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 | " \