diff options
author | Carlos O'Donell <carlos_odonell@mentor.com> | 2012-06-21 07:58:27 -0700 |
---|---|---|
committer | Carlos O'Donell <carlos_odonell@mentor.com> | 2012-06-21 07:58:27 -0700 |
commit | feca660a796e5782498bd6d6673999d9e26b5f4d (patch) | |
tree | 140f207806d09f22dea89cd8a3b790963efc8e2f /scripts/list-sources.sh | |
parent | 8d847132bc92b1095f3611996221347e4f988904 (diff) | |
download | glibc-feca660a796e5782498bd6d6673999d9e26b5f4d.tar.gz glibc-feca660a796e5782498bd6d6673999d9e26b5f4d.tar.xz glibc-feca660a796e5782498bd6d6673999d9e26b5f4d.zip |
Regenerate libc.pot.
Enhance scripts/list-sources.sh to search glibc-ports for translatable strings.
Diffstat (limited to 'scripts/list-sources.sh')
-rwxr-xr-x | scripts/list-sources.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/list-sources.sh b/scripts/list-sources.sh index 53b6f7f0ee..528e971b42 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.' |