xmlpool/build: Make sure to set mo properly
authorNaohiro Aota <naota@elisp.net>
Mon, 24 Jun 2013 08:53:10 +0000 (17:53 +0900)
committerMatt Turner <mattst88@gmail.com>
Wed, 26 Jun 2013 04:22:56 +0000 (21:22 -0700)
Some shells does not set variables sequentially in a statement i.e. "a=X
b=${a}" won't set "b" to "X" but empty value.

This patch introduce ";" to make sure "mo" is set properly before "lang"
assignment.

Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=471302

src/mesa/drivers/dri/common/xmlpool/Makefile.am

index b545f37de863a71bd07c448201f7cf733e4af898..ad7887d06eb26c9b8e40f2afd5548880d1c78ce6 100644 (file)
@@ -66,7 +66,7 @@ options.h: t_options.h $(MOS)
 
 # Update .mo files from the corresponding .po files.
 %/LC_MESSAGES/options.mo: %.po
-       @mo="$@" \
+       @mo="$@"; \
        lang=$${mo%%/*}; \
        echo "Updating ($$lang) $@ from $?."; \
        mkdir -p $$lang/LC_MESSAGES; \