From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10332 invoked by alias); 20 Nov 2001 15:19:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10159 invoked from network); 20 Nov 2001 15:19:33 -0000 Received: from unknown (HELO dell-pe2450-3.cambridge.redhat.com) (195.224.55.225) by sourceware.cygnus.com with SMTP; 20 Nov 2001 15:19:33 -0000 Received: from north-pole.nickc.cambridge.redhat.com (host217-35-25-58.in-addr.btopenworld.com [217.35.25.58]) by dell-pe2450-3.cambridge.redhat.com (Postfix) with ESMTP id 3C51A850E2; Tue, 20 Nov 2001 15:19:32 +0000 (GMT) Received: from north-pole.nickc.cambridge.redhat.com.nickc.cambridge.redhat.com (localhost [127.0.0.1]) by north-pole.nickc.cambridge.redhat.com (Postfix) with ESMTP id 5D28111163A; Tue, 20 Nov 2001 15:17:55 +0000 (GMT) To: bug-binutils@gnu.org, gdb-patches@sources.redhat.com Cc: haible@ilog.fr Subject: Make .gmo files for distributions. From: Nick Clifton Date: Wed, 07 Nov 2001 23:31:00 -0000 Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2001-11/txt/msg00145.txt.bz2 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 * 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)