blob: 364439b4e3551bfc6116293bea7fbc92f4dfd63c [file] [log] [blame]
diff -aruN iw-3.10/version.sh iw-3.10.n/version.sh
--- iw-3.10/version.sh 2013-05-02 00:29:10.000000000 -0700
+++ iw-3.10.n/version.sh 2015-03-24 12:24:03.355548918 -0700
@@ -1,20 +1,17 @@
#!/bin/sh
VERSION="3.10"
-OUT="$1"
-
-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
- git update-index --refresh --unmerged > /dev/null
- descr=$(git describe)
- # on git builds check that the version number above
- # is correct...
- [ "${descr%%-*}" = "v$VERSION" ] || exit 2
+SUFFIX=
+if test "x$1" = x--suffix; then
+ shift
+ SUFFIX="-$1"
+ shift
+fi
+OUT="$1"
- v="${descr#v}"
- if git diff-index --name-only HEAD | read dummy ; then
- v="$v"-dirty
- fi
+if test "x$SUFFIX" != 'x'; then
+ v="$VERSION$SUFFIX"
else
v="$VERSION"
fi