bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] maintainer-makefile: Fix Apple Xcode 'make syntax-check'.


From: Bruno Haible
Subject: Re: [PATCH] maintainer-makefile: Fix Apple Xcode 'make syntax-check'.
Date: Mon, 31 Oct 2022 23:32:58 +0100

Hi Simon,

> +     @if ! indent --version 2> /dev/null | grep -q 'GNU indent'; then\

As mentioned in the Autoconf manual [1], the grep option '-q' is not portable.
E.g. on Solaris 10:

$ echo | grep -q x
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .

The portable alternative is
  grep 'GNU indent' > /dev/null

Bruno

[1] 
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Limitations-of-Usual-Tools.html






reply via email to

[Prev in Thread] Current Thread [Next in Thread]