Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Make .gmo files for distributions.
@ 2001-11-07 23:31 Nick Clifton
  2001-11-08  9:36 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2001-11-07 23:31 UTC (permalink / raw)
  To: bug-binutils, gdb-patches; +Cc: haible

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  <nickc@cambridge.redhat.com>

	* 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)
  


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make .gmo files for distributions.
  2001-11-08  9:36 ` Andrew Cagney
@ 2001-11-08  9:32   ` Nick Clifton
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2001-11-08  9:32 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: bug-binutils, gdb-patches, haible

Hi Andrew,

> Yes please.  I'm wondering, though, why it doesn't happen anyway?

Well for binutils, the .po files were only recently added, so the need
for this rule has only just arisen.  I decided it would be better to
add the code to the top level Makefile, rather than placing copies of
it in every binutils sub-directory, since this way no directory will
be forgotten.

Cheers
        Nick


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make .gmo files for distributions.
  2001-11-07 23:31 Make .gmo files for distributions Nick Clifton
@ 2001-11-08  9:36 ` Andrew Cagney
  2001-11-08  9:32   ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2001-11-08  9:36 UTC (permalink / raw)
  To: Nick Clifton; +Cc: bug-binutils, gdb-patches, haible

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

Yes please.  I'm wondering, though, why it doesn't happen anyway?

Andrew




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-20 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 23:31 Make .gmo files for distributions Nick Clifton
2001-11-08  9:36 ` Andrew Cagney
2001-11-08  9:32   ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox