]>
Commit | Line | Data |
---|---|---|
9de06f3c RM |
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 | ||
9d65ea3a | 12 | if [ -r .git/HEAD ]; then |
feca660a | 13 | ${GIT:-git} ls-files |
feca660a | 14 | exit 0 |
9de06f3c RM |
15 | fi |
16 | ||
17 | echo >&2 'Cannot list sources without some version control system in use.' | |
18 | exit 1 |