version.sh: append -dirty if the working tree contains modifications

This allows us to detect users who run mpv with custom patches.
This commit is contained in:
Niklas Haas 2017-06-16 17:20:44 +02:00
parent 546ae3db4f
commit a86b0ffa6b
No known key found for this signature in database
GPG Key ID: 9A09076581B27402
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ fi
# or from "git describe" output
git_revision=$(cat snapshot_version 2> /dev/null)
test "$git_revision" || test ! -e .git || git_revision="$(git describe \
--match "v[0-9]*" --always --tags | sed 's/^v//')"
--match "v[0-9]*" --always --tags --dirty | sed 's/^v//')"
version="$git_revision"
# other tarballs extract the version number from the VERSION file