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-changelog

[Xen-changelog] [xen-unstable] Only build the message database if msgfmt

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Only build the message database if msgfmt is installed.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Dec 2006 15:10:11 -0800
Delivery-date: Sat, 23 Dec 2006 15:10:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1166900791 0
# Node ID 967426f60378716aa60279a6f18eadc85dd4d9c4
# Parent  93ca2dcd681d7b4597ac50f40f190b0dc6e4f447
Only build the message database if msgfmt is installed.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 93ca2dcd681d -r 967426f60378 tools/python/Makefile
--- a/tools/python/Makefile     Sat Dec 23 11:37:01 2006 +0000
+++ b/tools/python/Makefile     Sat Dec 23 19:06:31 2006 +0000
@@ -7,12 +7,14 @@ all: build
 .PHONY: build
 build:
        CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
-       for file in `cd xen/xm; find messages -name xen-xm.po`; do \
+       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"; \
-        done
+          done; \
+        fi
 
 .PHONY: install
 ifndef XEN_PYTHON_NATIVE_INSTALL

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Only build the message database if msgfmt is installed., Xen patchbot-unstable <=