]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
fix bug in version.sh
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jul 2011 11:32:49 +0000 (13:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jul 2011 11:34:06 +0000 (13:34 +0200)
version.sh

index 445d847014745524cdef9d6458feb86dbe19bae0..d2b592d45fbffefe75fd33a8e189a91d6b52f54e 100755 (executable)
@@ -3,8 +3,6 @@
 VERSION="0.9.22"
 OUT="$1"
 
-echo '#include "iw.h"' > "$OUT"
-
 if head=`git rev-parse --verify HEAD 2>/dev/null`; then
        git update-index --refresh --unmerged > /dev/null
        descr=$(git describe)
@@ -21,4 +19,5 @@ else
        v="$VERSION"
 fi
 
+echo '#include "iw.h"' > "$OUT"
 echo "const char iw_version[] = \"$v\";" >> "$OUT"