From: Johannes Berg Date: Sun, 26 Oct 2008 08:54:48 +0000 (+0100) Subject: bump version to 0.9.6, fix version.sh checks vs. rebuilds X-Git-Tag: v0.9.6^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6562f75e7200640120cb0ac8f99ad8c4283ba3a;p=thirdparty%2Fiw.git bump version to 0.9.6, fix version.sh checks vs. rebuilds --- diff --git a/version.sh b/version.sh index 773486f..938a65d 100755 --- a/version.sh +++ b/version.sh @@ -1,8 +1,8 @@ #!/bin/sh -VERSION="0.9.5" +VERSION="0.9.6" +OUT="version.h" -( if head=`git rev-parse --verify HEAD 2>/dev/null`; then git update-index --refresh --unmerged > /dev/null descr=$(git describe) @@ -11,13 +11,12 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then # is correct... [ "${descr%%-*}" = "v$VERSION" ] || exit 2 - echo -n '#define IW_VERSION "' - echo -n "${descr#v}" + echo -n '#define IW_VERSION "' > "$OUT" + echo -n "${descr#v}" >> "$OUT" if git diff-index --name-only HEAD | read dummy ; then - echo -n "-dirty" + echo -n "-dirty" >> "$OUT" fi - echo '"' + echo '"' >> "$OUT" else -echo "#define IW_VERSION \"$VERSION-nogit\"" +echo "#define IW_VERSION \"$VERSION-nogit\"" > "$OUT" fi -) > version.h