3 # List all the files under version control in the source tree.
9 *) echo >&2 "Usage: $0 [top_srcdir]"; exit 2 ;;
12 if [ -r CVS
/Entries
]; then
14 ${CVS:-cvs} status
2>&1 |
${AWK:-awk} '
15 NF >= 2 && $(NF - 1) == "Examining" { dir = $NF }
16 $1 == "File:" { print (dir == ".") ? $2 : (dir "/" $2) }'
19 elif [ -r .svn
/entries
]; then
21 ${SVN:-svn} ls -R |
sed '/\/$/d'
24 elif [ -r MT
/options
]; then
26 exec ${MONOTONE:-monotone} list known
28 elif [ -r .git
/HEAD
]; then
30 exec ${GIT:-git} ls-files
34 echo >&2 'Cannot list sources without some version control system in use.'