#!/bin/sh # # List all the files under version control in the source tree. # match $Argc { with 0 with 1 cd $1 with * echo >&2 "Usage: $0 [top_srcdir]> !2 "Usage: $0 [top_srcdir]"; exit 2 } if test -r .git/HEAD { $(GIT:-git) ls-files exit 0 } echo >&2 'Cannot list sources without some version control system in use.> !2 'Cannot list sources without some version control system in use.' exit 1