summaryrefslogtreecommitdiff
path: root/libc/scripts
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-06-22 15:11:15 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-06-22 15:11:15 +0000
commite86ff722e7f38c0ad5dce27190e18f5e8741b626 (patch)
treed2ec89ce9115cac06c02623c87ca56035dea8cf7 /libc/scripts
parent72c5cff8f745e77d8c84e826db2b3944414b9467 (diff)
downloadeglibc2-e86ff722e7f38c0ad5dce27190e18f5e8741b626.tar.gz
Merge changes between r19162 and r19234 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@19235 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/scripts')
-rwxr-xr-xlibc/scripts/list-sources.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/libc/scripts/list-sources.sh b/libc/scripts/list-sources.sh
index 53b6f7f0e..528e971b4 100755
--- a/libc/scripts/list-sources.sh
+++ b/libc/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.'