diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-08-17 09:45:55 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-08-17 09:45:55 +0000 |
commit | 84af4cd4d9df44b51ca4c7999bea4afcb0ea1051 (patch) | |
tree | 39da1257935a45df0b6dc9632cac7dc2035658fd | |
parent | a716404895da793c5bfb88f43d2534cb7def27e5 (diff) |
automatic version updates
svn path=/trunk/externals/hardware/wiimote/; revision=13819
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | version_update.sh | 11 | ||||
-rw-r--r-- | wiimote-help.pd | 4 | ||||
-rw-r--r-- | wiimote-meta.pd | 10 | ||||
-rw-r--r-- | wiimote.c | 6 |
6 files changed, 29 insertions, 8 deletions
@@ -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 @@ -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; @@ -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 } |