]> git.ipfire.org Git - thirdparty/glibc.git/blame - scripts/list-sources.sh
Also create and use ldbl-compat-choose.h.
[thirdparty/glibc.git] / scripts / list-sources.sh
CommitLineData
9de06f3c
RM
1#!/bin/sh
2#
3# List all the files under version control in the source tree.
4#
5
6case $# in
70) ;;
81) cd "$1" ;;
9*) echo >&2 "Usage: $0 [top_srcdir]"; exit 2 ;;
10esac
11
9d65ea3a 12if [ -r .git/HEAD ]; then
feca660a 13 ${GIT:-git} ls-files
feca660a 14 exit 0
9de06f3c
RM
15fi
16
17echo >&2 'Cannot list sources without some version control system in use.'
18exit 1