]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - version.sh
bump version to 4.3
[thirdparty/iw.git] / version.sh
index 4a2f5322bd15651be571a0edf025c107af44292c..7ccd419ffc468b2806add4bfff43c325abb866a8 100755 (executable)
@@ -1,13 +1,11 @@
 #!/bin/sh
 
-VERSION="0.9.15"
+VERSION="4.3"
 OUT="$1"
 
-echo '#include "iw.h"' > "$OUT"
-
-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...
@@ -21,4 +19,5 @@ else
        v="$VERSION"
 fi
 
+echo '#include "iw.h"' > "$OUT"
 echo "const char iw_version[] = \"$v\";" >> "$OUT"