Only build the message database if msgfmt is installed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-23 19:06:31 +00:00
1 parent a99ec19fc3
commit 42a0276111
1 file changed
+4 -2
+4 -2
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.