Regenerate libc.pot.

Enhance scripts/list-sources.sh to search glibc-ports
for translatable strings.

(backported from trunk)
This commit is contained in:
Carlos O'Donell 2012-06-24 22:22:39 +00:00
parent 91fdff8d85
commit e0ca0a0f76
3 changed files with 624 additions and 457 deletions

View File

@ -1,3 +1,8 @@
2012-06-24 Carlos O'Donell <carlos@systemhalted.org>
* scripts/list-sources.sh: Scan PORTS for translations.
* po/libc.pot: Regenerated.
2012-06-13 Carlos O'Donell <carlos_odonell@mentor.com>
* po/Makefile (libc.pot): Use UTF-8 charset.

File diff suppressed because it is too large Load Diff

View File

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