aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--VERSION2
-rw-r--r--version_update.sh11
-rw-r--r--wiimote-help.pd4
-rw-r--r--wiimote-meta.pd10
-rw-r--r--wiimote.c6
6 files changed, 29 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index c01c976..acd55f5 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,14 @@ SOURCES_Windows =
#
#------------------------------------------------------------------------------#
+VERSION=0.3.1
+
# where Pd lives
PD_PATH = ../../pd
# where to install the library
objectsdir = $(PD_PATH)/extra
-CFLAGS = -DPD -I$(PD_PATH)/src -Wall -W -g
+CFLAGS = -DPD -I$(PD_PATH)/src -Wall -W -g -DVERSION=\"$(VERSION)\"
LDFLAGS =
LIBS = -lcwiid -lbluetooth -lpthread
diff --git a/VERSION b/VERSION
index ae65228..9e11b32 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-see startup messages for current version of wiimote
+0.3.1
diff --git a/version_update.sh b/version_update.sh
new file mode 100644
index 0000000..0425b55
--- /dev/null
+++ b/version_update.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+VERSION=$(cat VERSION)
+
+echo updating to version: $VERSION
+
+sed -e "s|^VERSION=.*$|VERSION=${VERSION}|" -i Makefile
+sed -e "s| VERSION .*;$| VERSION ${VERSION};|" -i wiimote-meta.pd
+
+
+
diff --git a/wiimote-help.pd b/wiimote-help.pd
index 71ac3ec..0993f28 100644
--- a/wiimote-help.pd
+++ b/wiimote-help.pd
@@ -2,7 +2,7 @@
#N struct NC-stick float x float y;
#N struct cc-left-stick float x float y;
#N struct cc-right-stick float x float y;
-#N canvas 133 45 830 538 10;
+#N canvas 432 145 830 538 10;
#X text 8 9 IN ORDER TO CONNECT: First put the wiimote into discover
mode (press buttons 1 and 2 simultaneously).;
#X text 16 364 You can also specify the address as a creation argument:
@@ -642,6 +642,8 @@ empty -2 -8 0 10 -203904 -1 -1 0 1;
#X connect 1 0 3 0;
#X connect 3 0 2 0;
#X restore 667 502 pd Balance;
+#X text 18 472 (c) 2007-2010 Mike Wozniewski \, IOhannes m zmoelnig
+& Roman Haefeli;
#X connect 20 0 19 0;
#X connect 21 0 19 0;
#X connect 22 0 19 0;
diff --git a/wiimote-meta.pd b/wiimote-meta.pd
index 24872d2..0d919c4 100644
--- a/wiimote-meta.pd
+++ b/wiimote-meta.pd
@@ -1,6 +1,8 @@
-#N canvas 15 49 200 200 10;
-#N canvas 25 49 420 300 META 1;
+#N canvas 16 114 200 200 10;
+#N canvas 488 184 420 300 META 1;
#X text 13 41 NAME wiimote;
-#X text 10 25 AUTHOR Mike Wozniewski + Florian Krebs + IOhannes m zmoelnig;
-#X text 10 10 VERSION 0.3;
+#X text 10 25 AUTHOR Mike Wozniewski + Florian Krebs + IOhannes m zmoelnig
+;
+#X text 10 10 VERSION 0.3.1;
+#X obj 163 144 wiimote;
#X restore 10 10 pd META;
diff --git a/wiimote.c b/wiimote.c
index e6391a1..79bddf2 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -1144,5 +1144,9 @@ void wiimote_setup(void)
post(" (c) 2007 Mike Wozniewski");
post(" (c) 2008-2009 Florian Krebs");
post(" (c) 2009-2010 IOhannes m zmoelnig");
- post(" version 0.3 published under the GNU General Public License");
+#ifdef VERSION
+ post(" version " VERSION " published under the GNU General Public License");
+#else
+ post(" published under the GNU General Public License");
+#endif
}