This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Make .gmo files for distributions.


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)
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]