From: Johannes Berg Date: Wed, 20 Jul 2011 11:32:49 +0000 (+0200) Subject: fix bug in version.sh X-Git-Tag: v3.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a236ef5f8e4ba7218aac7d0cdacf45673d5b35c;p=thirdparty%2Fiw.git fix bug in version.sh --- diff --git a/version.sh b/version.sh index 445d847..d2b592d 100755 --- a/version.sh +++ b/version.sh @@ -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"