From: Andreas Ericsson Date: Fri, 14 Mar 2008 13:07:27 GMT Subject: Re: [PATCH] Simplify MSGFMT setting in Makefile Message-ID: <47DA788F.6070406@op5.se> In-Reply-To: <18394.671.630499.836160@cargo.ozlabs.ibm.com> Paul Mackerras wrote: > Junio C Hamano writes: > >> * I am planning to close 'master' for -rc1 by the end of this week, so >> please plan to tell me to pull if you have accumulated changes, >> thanks. > > I have a few commits for you to pull, but I am about to push a patch > for gitk like the one you sent for git-gui, so I'll send you a pull > request when I've done that. However, I found that in this line: > >> else >> MSGFMT ?= msgfmt >> - ifeq ($(shell $(MSGFMT) >/dev/null 2>&1 || echo $$?),127) >> + ifneq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null; echo $?),0) > > I had to put "echo $$?" for it to work rather than "echo $?". > $$ is the way to pass a literal $ to the shell in Makefiles, so that seems in order. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231