Mesa (9.1): xmlpool/build: Make sure to set mo properly

Matt Turner mattst88 at kemper.freedesktop.org
Wed Jun 26 04:27:54 UTC 2013


Module: Mesa
Branch: 9.1
Commit: 3a96680fb5f83391213750ef48de7c763b3cc833
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a96680fb5f83391213750ef48de7c763b3cc833

Author: Naohiro Aota <naota at elisp.net>
Date:   Mon Jun 24 17:53:10 2013 +0900

xmlpool/build: Make sure to set mo properly

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
(cherry picked from commit 95e145aaee1c535aa4d55b1765c717968efdf18c)

---

 src/mesa/drivers/dri/common/xmlpool/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/common/xmlpool/Makefile.am b/src/mesa/drivers/dri/common/xmlpool/Makefile.am
index b545f37..ad7887d 100644
--- a/src/mesa/drivers/dri/common/xmlpool/Makefile.am
+++ b/src/mesa/drivers/dri/common/xmlpool/Makefile.am
@@ -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; \




More information about the mesa-commit mailing list