]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - version.sh
iw: document handler return value 1 as HANDLER_RET_USAGE
[thirdparty/iw.git] / version.sh
index 3fb9f6d60baf8073d6a1ea2e3aa695e95b9cdd67..7ccd419ffc468b2806add4bfff43c325abb866a8 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/sh
 
-VERSION="3.2"
+VERSION="4.3"
 OUT="$1"
 
-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
+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...