]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: only use tags matching "v*"
authorJohannes Berg <johannes.berg@intel.com>
Mon, 8 Jun 2015 08:51:10 +0000 (10:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Jun 2015 08:51:10 +0000 (10:51 +0200)
Some people/build systems may add additional tags, so use only
tags matching "v*" for the version creation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
version.sh

index 50c888b649989f0349ea46b76f6002c5d1af48d7..3b7cafdb2b3bdceb87a643bdf888aab660d3db88 100755 (executable)
@@ -5,7 +5,7 @@ OUT="$1"
 
 if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
        git update-index --refresh --unmerged > /dev/null
-       descr=$(git describe)
+       descr=$(git describe --match=v*)
 
        # on git builds check that the version number above
        # is correct...