Regenerate libc.pot.

Enhance scripts/list-sources.sh to search glibc-ports
for translatable strings.
This commit is contained in:
Carlos O'Donell 2012-06-21 07:58:27 -07:00
parent 8d847132bc
commit feca660a79
2 changed files with 1347 additions and 1186 deletions

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