build="$build$(check_unversioned)"
elif [ -e .git ]
then
- tag=$(git describe --tags 2>/dev/null) || true
+ tag=$(git describe --tags --match "${paket}_*" 2>/dev/null) || true
if test -z "$tag"
then
tag="0.0-0TOP"
fi
- tag_paket=${tag%_*}
- if [ "$tag_paket" != "$paket" ]
- then
- tag="0.0-0TOP"
- fi
changes=$(check_unversioned)
tag="$tag$changes"
version=${tag%-*}