git-gui: Ensure msgfmt failure stops GNU make
If we have a failure executing msgfmt (such as the process just crashes no matter what arguments you supply it because its own installation is borked) we should stop the build process rather than letting it continue along its merry way as if the .msg files were created. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Sep 3, 2007 at 18:54 UTC
12fb223326b561132d528bb010c6bdeaa828acd3
1 file changed
+2
-2
Makefile
+2
-2
@@ -47,8 +47,8 @@ ifndef V
47
QUIET_GEN = $(QUIET)echo ' ' GEN $@ &&
48
QUIET_BUILT_IN = $(QUIET)echo ' ' BUILTIN $@ &&
49
QUIET_INDEX = $(QUIET)echo ' ' INDEX $(dir $@) &&
50
- QUIET_MSGFMT0 = $(QUIET)printf ' MSGFMT %12s ' $@ &&
51
- QUIET_MSGFMT1 = 2>&1 | sed -e 's/fuzzy translations/fuzzy/' | sed -e 's/ messages//g'
50
+ QUIET_MSGFMT0 = $(QUIET)printf ' MSGFMT %12s ' $@ && v=`
51
+ QUIET_MSGFMT1 = 2>&1` && echo "$$v" | sed -e 's/fuzzy translations/fuzzy/' | sed -e 's/ messages//g'
52
QUIET_2DEVNULL = 2>/dev/null
53
54
INSTALL_D0 = dir=