Re: makefile bash2 typo (Re: We interrupt you regularly scheduled catfight for.. Linux 2.2.18pre13)

Andreas Schwab (schwab@suse.de)
Mon, 2 Oct 2000 18:39:43 +0200


Tim Waugh <twaugh@redhat.com> writes:

|> On Mon, Oct 02, 2000 at 07:47:54AM -0700, Clayton Weaver wrote:
|>
|> > What is the second "fi" for?
|>
|> The first "if".

Btw, the Bourne language also has `elif':

CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
elif [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi)

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/