From a39bc7f7cb21892af40512f6f883a7e8988faed3 Mon Sep 17 00:00:00 2001 From: Richard Ulrich Date: Fri, 24 Feb 2012 20:49:28 +0100 Subject: [PATCH] arexx released a new version of the robotloader --- debian/arexx-robotloader.postinst | 48 +++++++++++++++++++++++++++++++ debian/changelog | 10 +++++-- debian/rules | 3 +- ppa_upload.sh | 2 +- robotloader | 7 ++++- 5 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 debian/arexx-robotloader.postinst diff --git a/debian/arexx-robotloader.postinst b/debian/arexx-robotloader.postinst new file mode 100644 index 0000000..b1ca436 --- /dev/null +++ b/debian/arexx-robotloader.postinst @@ -0,0 +1,48 @@ +#!/bin/bash +# postinst script for arexx-robotloader + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +#. /usr/share/debconf/confmodule + + +case "$1" in + configure) + # load the modules for using the gpio pins as i2c + + mkdir -p /var/log/robotloader + chmod -R 777 /var/log/robotloader + + ;; + + abort-upgrade) + # success: We have successfully aborted an upgrade + ;; + + abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/changelog b/debian/changelog index 480ff11..6b57538 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,10 @@ -arexx-robot-arm (1.5-27~oneiric) oneiric; urgency=low +arexx-robot-arm (1.5-28~maverick) maverick; urgency=low + + * arexx released a new version of the robotloader + + -- Richard Ulrich Fri, 24 Feb 2012 20:48:00 +0100 + +arexx-robot-arm (1.5-27~maverick) maverick; urgency=low * added a package with the ROS firmware * increased the step value for the racsqt sliders @@ -8,7 +14,7 @@ arexx-robot-arm (1.5-27~oneiric) oneiric; urgency=low -- Richard Ulrich Thu, 26 Jan 2011 23:20:00 +0100 -arexx-robot-arm (1.5-26~oneiric) oneiric; urgency=low +arexx-robot-arm (1.5-26~maverick) maverick; urgency=low * added a doc package * some correction for installing files diff --git a/debian/rules b/debian/rules index 11f1eb3..299ec70 100755 --- a/debian/rules +++ b/debian/rules @@ -21,7 +21,7 @@ configure-stamp: build: build-stamp - unzip -n RobotLoader_20100712 + unzip -n RobotLoader_20120223 unzip -n robot_arm_mini_manual_de unzip -n robot_arm_pro_manual_de @@ -84,7 +84,6 @@ install: build mkdir -p $(CURDIR)/debian/arexx-robot-arm/usr/share/applications install -m 0755 $(CURDIR)/RobotLoader_20100712/*.jar -t $(CURDIR)/debian/arexx-robot-arm/usr/share/robotloader install -m 0755 $(CURDIR)/RobotLoader_20100712/config/*.* -t $(CURDIR)/debian/arexx-robot-arm/etc/robotloader - (cd $(CURDIR)/debian/arexx-robot-arm/usr/share/robotloader; ln -fs ../../../etc/robotloader config ) install -m 0755 $(CURDIR)/debian/*.desktop -t $(CURDIR)/debian/arexx-robot-arm/usr/share/applications install -m 0755 $(CURDIR)/robotloader -t $(CURDIR)/debian/arexx-robot-arm/usr/bin install -m 0755 $(CURDIR)/small_robot_arm.png -t $(CURDIR)/debian/arexx-robot-arm/usr/share/robotloader diff --git a/ppa_upload.sh b/ppa_upload.sh index 854fae8..27b6ea5 100755 --- a/ppa_upload.sh +++ b/ppa_upload.sh @@ -39,7 +39,7 @@ rm -rf RobotLoader_20100712/ rm -rf RobotArm_Examples* rm -rf RACS-* rm -rf RAC-MINI.hex -wget http://arexx.com/rp6/downloads/RobotLoader_20100712.zip +wget http://www.arexx.com/rp6/downloads/RobotLoader_20120223.zip wget http://arexx.com/robot_arm/downloads/robot_arm_mini_manual_de.zip wget http://arexx.com/robot_arm/downloads/robot_arm_pro_manual_de.zip diff --git a/robotloader b/robotloader index 5b25ffc..0c0beb8 100644 --- a/robotloader +++ b/robotloader @@ -1,5 +1,10 @@ #!/bin/sh +if [ -d "~/.robotloader" ]; then + mkdir ~/.robotloader + cp -rf /etc/robotloader/* ~/.robotloader/ +fi + cd /usr/share/robotloader -java -Djava.ext.dirs="/usr/share/java" -Djava.library.path="/usr/lib/jni" -jar RobotLoader_lib.jar +java -Xmx256m -Djava.ext.dirs="/usr/share/java" -Djava.library.path="/usr/lib/jni" -jar RobotLoader_lib.jar -logdir=/var/log/robotloader -configdir=~/.robotloader