aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-03-18 20:53:54 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-03-18 20:53:54 +0000
commitafe7e56d0f0bc030064804f56d0aaf6f690c2cfc (patch)
tree8f2cef3950f699f806bd871735c556005e63373c
parentabfa22f57202e264d6e7c3e60b049ac836b053a4 (diff)
get pduino version from the arduino.pd file
svn path=/trunk/externals/hardware/arduino/; revision=13232
-rwxr-xr-xmake-release.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/make-release.sh b/make-release.sh
index a79785a..5d5c328 100755
--- a/make-release.sh
+++ b/make-release.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-if [ $# -ne 2 ]; then
- echo "Usage: $0 PDUINO_VERSION FIRMATA_VERSION"
+if [ $# -ne 1 ]; then
+ echo "Usage: $0 FIRMATA_VERSION"
exit
fi
-PDUINO_VERSION=$1
+PDUINO_VERSION=`grep version_ arduino.pd | sed 's|.*version_\(.*\);|\1|'`
FIRMATA_VERSION=$2
PDUINO_DIR=Pduino-${PDUINO_VERSION}