From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19337 invoked by alias); 21 Jun 2012 15:04:46 -0000 Received: (qmail 19320 invoked by uid 22791); 21 Jun 2012 15:04:45 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pz0-f41.google.com (HELO mail-pz0-f41.google.com) (209.85.210.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jun 2012 15:04:26 +0000 Received: by dakp5 with SMTP id p5so1147742dak.0 for ; Thu, 21 Jun 2012 08:04:25 -0700 (PDT) Received: by 10.68.232.170 with SMTP id tp10mr19356835pbc.59.1340291065344; Thu, 21 Jun 2012 08:04:25 -0700 (PDT) Received: from [192.168.2.18] (bas3-ottawa23-1128747469.dsl.bell.ca. [67.71.81.205]) by mx.google.com with ESMTPS id ok6sm35927322pbb.29.2012.06.21.08.04.23 (version=SSLv3 cipher=OTHER); Thu, 21 Jun 2012 08:04:24 -0700 (PDT) Message-ID: <4FE337F6.1090501@systemhalted.org> Date: Thu, 21 Jun 2012 15:04:00 -0000 From: Carlos O'Donell User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Roland McGrath CC: Carlos O'Donell , libc-alpha , libc-ports@sourceware.org Subject: Re: [PATCH] Changes to libc.pot for glibc core and ports. References: <4FDB4635.7060306@mentor.com> <20120615165633.112D92C079@topped-with-meat.com> <4FDB6CBE.10303@mentor.com> <20120615172725.26AB62C0AA@topped-with-meat.com> In-Reply-To: <20120615172725.26AB62C0AA@topped-with-meat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00081.txt.bz2 On 6/15/2012 1:27 PM, Roland McGrath wrote: >> Joseph, as always, raised a great point on IRC, that ports shouldn't >> really be contributing any translatable messages. Translations belong >> at a higher level and in glibc core. > > Indeed. I didn't bother to whine about that though it came immediately to > mind, because I'd long ago noted it and just muttered under my breath. > >> Regardless of this point I don't want to loose a translation, and the >> latter is a QoI issue that should be independent of our global support >> for translations. > > Or lose one, either. > I've checked in the libc.pot update along with the scripts change that enables others to reproduce the same result. 2012-06-21 Carlos O'Donell * scripts/list-sources.sh: Scan PORTS for translations. * po/libc.pot: Regenerated. diff --git a/scripts/list-sources.sh b/scripts/list-sources.sh index 53b6f7f..528e971 100755 --- a/scripts/list-sources.sh +++ b/scripts/list-sources.sh @@ -11,8 +11,21 @@ esac if [ -r .git/HEAD ]; then - exec ${GIT:-git} ls-files - + # List files for glibc core. + ${GIT:-git} ls-files + # List files for glibc ports. + ports="ports" + if [ -d "$PWD/$ports" ]; then + cd "$PWD/$ports" + ${GIT:-git} ls-files | sed -e "s,^,$ports/,g" + else + # We expect the glibc-ports directory to be symlinked as PORTS. + # The glibc release manager will run this script as part of libc.pot + # regeneration and should ensure the symlink to PORTS is setup. + echo >&2 "WARNING: No \"$ports\" directory found. Expected glibc-ports"\ + "source directory to be symlinked as \"$ports\" directory." + fi + exit 0 fi echo >&2 'Cannot list sources without some version control system in use.'