Re: [PATCH] Makefile: Check for perl script errors with perl -c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Saturday, April 17, 2010 - 10:55 am

On Sat, Apr 17, 2010 at 11:05:00AM -0600, Matthew Ogilvie wrote:


Ah, OK. I misunderstood what you were trying to do before.


Though I would prefer it silenced, I don't personally have a big problem
with this. I guess others might.


Hmm. The cross-compilation thing is interesting, but I'm not sure it
even works now. We already are relying on generating perl.mak and using
it as part of our build, I think. I haven't looked closely at the perl
build stuff in git, though, so maybe there is a way to make it work.


Yeah, I have used that technique before, and it is unreadable. Maybe
simpler is to cheat with a tempfile:

  if ! perl -wc $@+ 2>$@.stderr; \
    then cat >&2 $@.stderr; rm -f $@.stderr; exit 1; \
    else rm -f $@.stderr; fi && \

but that is getting a bit unreadable, too. I dunno.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Makefile: Check for perl script errors with perl -c, Matthew Ogilvie, (Fri Apr 16, 7:29 pm)
Re: [PATCH] Makefile: Check for perl script errors with pe ..., Jeff King, (Sat Apr 17, 10:55 am)