build-sys: Support building pulseaudio as a submodule

When pulseaudio is a submodule, .git is a file.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Anton Lundin 2013-09-18 16:20:42 +02:00 committed by Arun Raghavan
parent 9de7519d16
commit 55f4b771c7

View file

@ -105,7 +105,7 @@ fi
if test -n "$v"
then
: # use $v
elif test -d .git \
elif test -e .git \
&& v=`git describe --abbrev=4 --match='v[0-9]*' HEAD 2>/dev/null` \
&& [ -n "$v" ]
then