mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-28 05:40:21 -04:00
git-version-gen: Avoid further processing when tarball-version is present
In case a tarball-version file is present, use that and quit. Otherwise git will continue looking for directories, potentially finding .git directories which are dirty and mark the version as such. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=90936
This commit is contained in:
parent
f277f2c509
commit
c25b06577c
1 changed files with 4 additions and 1 deletions
|
|
@ -84,7 +84,10 @@ then
|
|||
v=`cat $tarball_version_file` || exit 1
|
||||
case $v in
|
||||
*$nl*) v= ;; # reject multi-line output
|
||||
[0-9]*) ;;
|
||||
[0-9]*)
|
||||
echo "$v" | tr -d '\012'
|
||||
exit 0
|
||||
;;
|
||||
*) v= ;;
|
||||
esac
|
||||
test -z "$v" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue