From: Johannes Berg Date: Tue, 16 Sep 2008 19:58:46 +0000 (+0200) Subject: versioning foo X-Git-Tag: v0.9~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e10ba7c9c0a202f9ff1995a1a21dc4349665ce0;p=thirdparty%2Fiw.git versioning foo --- diff --git a/Makefile b/Makefile index 772eecf..5b4e621 100644 --- a/Makefile +++ b/Makefile @@ -23,9 +23,9 @@ endif all: $(ALL) -version.h: git-version.sh +version.h: version.sh @$(NQ) ' GEN version.h' - $(Q)./git-version.sh + $(Q)./version.sh %.o: %.c iw.h version.h @$(NQ) ' CC ' $@ diff --git a/iw.h b/iw.h index 45655cb..c9d9052 100644 --- a/iw.h +++ b/iw.h @@ -6,8 +6,6 @@ #include #include -#define VERSION "1.0" - #define ETH_ALEN 6 struct nl80211_state { diff --git a/git-version.sh b/version.sh similarity index 86% rename from git-version.sh rename to version.sh index 31e0241..83e253e 100755 --- a/git-version.sh +++ b/version.sh @@ -1,6 +1,9 @@ #!/bin/sh +VERSION="1.0" + ( +echo "#define VERSION \"$VERSION\"" if head=`git rev-parse --verify HEAD 2>/dev/null`; then git update-index --refresh --unmerged > /dev/null printf "#define IW_GIT_VERSION \"-g%.8s" "$head"