From: Simon Josefsson <simon@josefsson.org> Date: Mon, 31 Oct 2022 08:42:42 +0000 (+0100) Subject: maintainer-makefile: Fix Apple Xcode 'make syntax-check'. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e485da2e35ebb2823be60dfa9fa78594a78d6fdc;p=gnulib.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 ad3a20cf01..9d58592ffe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-10-31 Simon Josefsson <simon@josefsson.org> + + maintainer-makefile: Fix Apple Xcode 'make syntax-check'. + * top/maint.mk (sc_indent): Don't use non-GNU indent. + 2022-10-16 Bruno Haible <bruno@clisp.org> getdelim: Work around buggy implementation on macOS 10.13. diff --git a/top/maint.mk b/top/maint.mk index 9696c87bad..c121e37a3d 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -1644,8 +1644,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 \