ia64/xen-unstable

changeset 13226:89d4e80cd1b7

Explicitly use GNU msgfmt on non-GNU systems.
Signed-off-by: John Levon <john.levon@sun.com>
author kaf24@localhost.localdomain
date Fri Dec 29 16:23:11 2006 +0000 (2006-12-29)
parents f0e9c518d0ff
children d5d5d3d491d8
files config/StdGNU.mk config/SunOS.mk tools/python/Makefile
line diff
     1.1 --- a/config/StdGNU.mk	Fri Dec 29 16:17:53 2006 +0000
     1.2 +++ b/config/StdGNU.mk	Fri Dec 29 16:23:11 2006 +0000
     1.3 @@ -9,6 +9,8 @@ STRIP      = $(CROSS_COMPILE)strip
     1.4  OBJCOPY    = $(CROSS_COMPILE)objcopy
     1.5  OBJDUMP    = $(CROSS_COMPILE)objdump
     1.6  
     1.7 +MSGFMT     = msgfmt
     1.8 +
     1.9  INSTALL      = install
    1.10  INSTALL_DIR  = $(INSTALL) -d -m0755
    1.11  INSTALL_DATA = $(INSTALL) -m0644
     2.1 --- a/config/SunOS.mk	Fri Dec 29 16:17:53 2006 +0000
     2.2 +++ b/config/SunOS.mk	Fri Dec 29 16:23:11 2006 +0000
     2.3 @@ -9,6 +9,8 @@ STRIP      = $(CROSS_COMPILE)gstrip
     2.4  OBJCOPY    = $(CROSS_COMPILE)gobjcopy
     2.5  OBJDUMP    = $(CROSS_COMPILE)gobjdump
     2.6  
     2.7 +MSGFMT     = gmsgfmt
     2.8 +
     2.9  SHELL      = bash
    2.10  
    2.11  INSTALL      = ginstall
     3.1 --- a/tools/python/Makefile	Fri Dec 29 16:17:53 2006 +0000
     3.2 +++ b/tools/python/Makefile	Fri Dec 29 16:23:11 2006 +0000
     3.3 @@ -7,12 +7,12 @@ all: build
     3.4  .PHONY: build
     3.5  build:
     3.6  	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
     3.7 -	if which msgfmt >/dev/null ; then \
     3.8 +	if which $(MSGFMT) >/dev/null ; then \
     3.9            for file in `cd xen/xm; find messages -name xen-xm.po`; do \
    3.10              dest=`echo "build/$$file" | \
    3.11                    sed -e 's#xen-xm.po#LC_MESSAGES/xen-xm.mo#'`; \
    3.12              mkdir -p `dirname "$$dest"`; \
    3.13 -            msgfmt -c -o "$$dest" "xen/xm/$$file"; \
    3.14 +            $(MSGFMT) -c -o "$$dest" "xen/xm/$$file"; \
    3.15            done; \
    3.16          fi
    3.17  
    3.18 @@ -26,7 +26,7 @@ install: install-messages
    3.19  endif
    3.20  
    3.21  install-messages: all
    3.22 -	if which msgfmt >/dev/null ; then \
    3.23 +	if which $(MSGFMT) >/dev/null ; then \
    3.24  	  mkdir -p "$(DESTDIR)/usr/share/locale"; \
    3.25  	  cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"; \
    3.26  	fi