This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Changes to libc.pot for glibc core and ports.
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 <carlos_odonell@mentor.com>
* 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.'