bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make .gmo files for distributions.


From: Nick Clifton
Subject: Make .gmo files for distributions.
Date: 20 Nov 2001 15:17:54 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Hi Guys,

  Any objections to the following patch ?  It adds code to the
  do-proto-toplev target to build *.gmo files from their respective
  .po files as part of a distribution.

  I was prompted to make this change because of an email from Bruno
  Haible, the GNU gettext maintainer: 

    http://sources.redhat.com/ml/bug-gnu-utils/2001-11/msg00130.html

  He points out that not all hosts have the gettext utilities
  installed, and so they cannot be expected to build the .gmo files if
  they are not present in a distribution.

Cheers
        Nick


2001-11-20  Nick Clifton  <address@hidden>

        * Makefile.in (do-proto-toplev): Use msgfmt to generate .gmo
        files from .po files for a distribution.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/Makefile.in,v
retrieving revision 1.41
diff -p -c -r1.41 Makefile.in
*** Makefile.in 2001/11/14 05:49:24     1.41
--- Makefile.in 2001/11/20 15:12:59
*************** do-proto-toplev: $(DEVO_SUPPORT) $(SUPPO
*** 1864,1869 ****
--- 1864,1874 ----
        else true; fi
        chmod -R og=u . || chmod og=u `find . -print`
        #
+       # Create .gmo files from .po files.
+       for f in `find . -name '*.po' -type f -print`; do \
+            msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
+       done
+       #
        -rm -f $(PACKAGE)-$(VER)
        ln -s proto-toplev $(PACKAGE)-$(VER)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]