X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2FPERF-VERSION-GEN;h=95264f30417903af6f9a91aab42d757bfdf42d5f;hb=aa5cdd308ddbb08959534be408eba8ef040b5989;hp=ad73300f7bac6d1b11e4db0f1e121e0e26b0fb0c;hpb=1ae105aa7416087f2920c35c3cd16831d0d09c9c;p=cascardo%2Flinux.git diff --git a/tools/perf/util/PERF-VERSION-GEN b/tools/perf/util/PERF-VERSION-GEN index ad73300f7bac..95264f304179 100755 --- a/tools/perf/util/PERF-VERSION-GEN +++ b/tools/perf/util/PERF-VERSION-GEN @@ -12,7 +12,7 @@ LF=' # First check if there is a .git to get the version from git describe # otherwise try to get the version from the kernel makefile if test -d ../../.git -o -f ../../.git && - VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && + VN=$(git describe --match 'v[0-9].[0-9]*' --abbrev=4 HEAD 2>/dev/null) && case "$VN" in *$LF*) (exit 1) ;; v[0-9]*)