]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
versioning foo
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 19:58:46 +0000 (21:58 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 19:58:46 +0000 (21:58 +0200)
Makefile
iw.h
version.sh [moved from git-version.sh with 86% similarity]

index 772eecf01f79c24d336a044876b46be7f3ab49a6..5b4e6213a2924ffb8e398bc7f076cad0fa8be64c 100644 (file)
--- 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 45655cb85d865bc531d80d9902f3a019ab37b67a..c9d905215dade5d8f2bb967a8041f1c9c11dc168 100644 (file)
--- a/iw.h
+++ b/iw.h
@@ -6,8 +6,6 @@
 #include <netlink/genl/family.h>
 #include <netlink/genl/ctrl.h>
 
-#define VERSION "1.0"
-
 #define ETH_ALEN 6
 
 struct nl80211_state {
similarity index 86%
rename from git-version.sh
rename to version.sh
index 31e024147b0fce7cdc75277dab1f24483847347b..83e253edd46d76260ff570bf3dc4f7e6c9dd6b13 100755 (executable)
@@ -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"