X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=GIT-VERSION-GEN;h=febacd2dc9a91cfd9135a64ee554d14282a105d2;hb=fb9a54150d308345a7027baae528b8fe90bd41f7;hp=1ce217dd7ba020e0aca1caf0008f65ad83eb309e;hpb=4e273c9dcfe8e898ea43b17213c47733a4fef842;p=git.git diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 1ce217dd7..febacd2dc 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,11 +1,19 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.4.2.GIT +DEF_VER=v1.5.0.GIT + +LF=' +' # First try git-describe, then see if there is a version file # (included in release tarballs), then default -if VN=$(git describe --abbrev=4 HEAD 2>/dev/null); then +if VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && + case "$VN" in + *$LF*) (exit 1) ;; + v[0-9]*) : happy ;; + esac +then VN=$(echo "$VN" | sed -e 's/-/./g'); elif test -f version then