WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Use gmsgfmt on Solaris

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Use gmsgfmt on Solaris
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Thu, 28 Dec 2006 17:39:47 +0000
Delivery-date: Thu, 28 Dec 2006 09:38:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
# HG changeset patch
# User john.levon@xxxxxxx
# Date 1167322006 28800
# Node ID f3f61b16da6af94e08390c2f1dce4c9ffd786777
# Parent  a00bf3c8f7bc8cb8537b153c61e6d09c9b494459
Use GNU msgfmt on non-GNU systems.

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/config/StdGNU.mk b/config/StdGNU.mk
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -8,6 +8,7 @@ STRIP      = $(CROSS_COMPILE)strip
 STRIP      = $(CROSS_COMPILE)strip
 OBJCOPY    = $(CROSS_COMPILE)objcopy
 OBJDUMP    = $(CROSS_COMPILE)objdump
+MSGFMT     = msgfmt
 
 INSTALL      = install
 INSTALL_DIR  = $(INSTALL) -d -m0755
diff --git a/config/SunOS.mk b/config/SunOS.mk
--- a/config/SunOS.mk
+++ b/config/SunOS.mk
@@ -8,6 +8,7 @@ STRIP      = $(CROSS_COMPILE)gstrip
 STRIP      = $(CROSS_COMPILE)gstrip
 OBJCOPY    = $(CROSS_COMPILE)gobjcopy
 OBJDUMP    = $(CROSS_COMPILE)gobjdump
+MSGFMT     = gmsgfmt
 
 SHELL      = bash
 
diff --git a/tools/python/Makefile b/tools/python/Makefile
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -7,12 +7,12 @@ all: build
 .PHONY: build
 build:
        CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
-       if which msgfmt >/dev/null ; then \
+       if which $(MSGFMT) >/dev/null ; then \
           for file in `cd xen/xm; find messages -name xen-xm.po`; do \
             dest=`echo "build/$$file" | \
                   sed -e 's#xen-xm.po#LC_MESSAGES/xen-xm.mo#'`; \
             mkdir -p `dirname "$$dest"`; \
-            msgfmt -c -o "$$dest" "xen/xm/$$file"; \
+            $(MSGFMT) -c -o "$$dest" "xen/xm/$$file"; \
           done; \
         fi
 
@@ -26,7 +26,7 @@ endif
 endif
 
 install-messages: all
-       if which msgfmt >/dev/null ; then \
+       if which $(MSGFMT) >/dev/null ; then \
          mkdir -p "$(DESTDIR)/usr/share/locale"; \
          cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"; \
        fi

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Use gmsgfmt on Solaris, John Levon <=