From 84af4cd4d9df44b51ca4c7999bea4afcb0ea1051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 17 Aug 2010 09:45:55 +0000 Subject: automatic version updates svn path=/trunk/externals/hardware/wiimote/; revision=13819 --- Makefile | 4 +++- VERSION | 2 +- version_update.sh | 11 +++++++++++ wiimote-help.pd | 4 +++- wiimote-meta.pd | 10 ++++++---- wiimote.c | 6 +++++- 6 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 version_update.sh 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 } -- cgit v1.2.1