projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
NPTL is no longer an add-on!
[platform/upstream/glibc.git]
/
scripts
/
list-sources.sh
1
#!/bin/sh
2
#
3
# List all the files under version control in the source tree.
4
#
5
6
case $# in
7
0) ;;
8
1) cd "$1" ;;
9
*) echo >&2 "Usage: $0 [top_srcdir]"; exit 2 ;;
10
esac
11
12
if [ -r .git/HEAD ]; then
13
${GIT:-git} ls-files
14
exit 0
15
fi
16
17
echo >&2 'Cannot list sources without some version control system in use.'
18
exit 1