Hi, David,

Do you mean this patch?

It fixes the name of .mo file in system locale direcotry.
As we know, gettext need use the name to find the .mo file.
So the right name is haclient.mo instead of haclient.zh_CN.mo.
However, we may have more than one language,
so we generate haclient.LANG.mo in the build directory, then
copy it(them) to the system locale directory, then rename the haclient.LANG.MO
to haclient.mo.

The value of datadir is different between the defination of mozhCNdir and the 
install-data-hook.
So it broke the build.


linux-ha CVS committal

Author  : zhenh
Host    :
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Modified Files:
        Makefile.am


Log Message:
fix the mo file name
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/Makefile.am,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Makefile.am 24 Jan 2006 15:34:50 -0000      1.9
+++ Makefile.am 7 Apr 2006 08:35:30 -0000       1.10
@@ -40,7 +40,11 @@
 mozhCNdir              = $(datadir)/locale/zh_CN/LC_MESSAGES
 mozhCN_DATA            = haclient.zh_CN.mo

+install-data-hook:
+               mv $(datadir)/locale/zh_CN/LC_MESSAGES/haclient.zh_CN.mo 
$(datadir)/locale/zh_CN/LC_MESSAGES/haclient.mo
+
 EXTRA_DIST             = $(halib_DATA) $(mozhCN_DATA)

 .po.mo:
        $(MSGFMT) -o $@ $<
+



David Lee wrote:
"mgmt/client/Makefile.am" rev 1.10 (made a few hours ago) breaks:
    make install DESTDIR=...

operations.

(I'm just about to go on holiday for a few days, so cannot look into a
proper fix... sorry.  But I get the feeling that it is trying to patch
around some sort of issue, and that the clean solution would be to address
that underlying issue directly.)




--
Best Regards,
Huang Zhen
Linux-HA, Linux Technology Center, China Systems & Technology Lab
China Development Labs, Beijing Tel: 86-10-82782244 Ext. 2845
Email: [EMAIL PROTECTED]
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to