From: Simon Josefsson Date: Mon, 31 Oct 2022 08:42:42 +0000 (+0100) Subject: maintainer-makefile: Fix Apple Xcode 'make syntax-check'. X-Git-Tag: v1.0~1978 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ad0eedf4ff8d294a10c20b8945d0e59aa8141db;p=thirdparty%2Fgnulib.git maintainer-makefile: Fix Apple Xcode 'make syntax-check'. * top/maint.mk (sc_indent): Don't use non-GNU indent. --- diff --git a/ChangeLog b/ChangeLog index 634aa8797f..acbe62a996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-10-31 Simon Josefsson + + maintainer-makefile: Fix Apple Xcode 'make syntax-check'. + * top/maint.mk (sc_indent): Don't use non-GNU indent. + 2022-10-30 Paul Eggert thread: pacify gcc -Wbad-function-cast diff --git a/top/maint.mk b/top/maint.mk index 495a0a2bf6..045609c285 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -1659,8 +1659,8 @@ indent: # Running indent once is not idempotent, but running it twice is. indent $(indent_args) $(INDENT_SOURCES) sc_indent: - @if ! command -v indent > /dev/null; then \ - echo 1>&2 '$(ME): sc_indent: indent is missing'; \ + @if ! indent --version 2> /dev/null | grep -q 'GNU indent'; then\ + echo 1>&2 '$(ME): sc_indent: GNU indent is missing'; \ else \ fail=0; files="$(INDENT_SOURCES)"; \ for f in $$files; do \