Commits

Sebastian Bub committed a873bf5

added a tgz package to the project

Comments (0)

Files changed (2)

 
 ### Planned Features
 
+* If GPIO ports are used to represent binary output values, blocking single ports is dangerous: Delayed/Queue requests
 * Automated tests
 * Custom hooks (pre/post), e.g. for notifications
 * More status and configuration information requestable via json (disengageable)
 simple output (manually and with cronjobs). If I had to give it a release number, I would say it is a 0.85 release. Bug reports and feature requests are welcome.
 
 
-## Getting Started
+## Getting Started (from tgz)
+
+1. [Download](https://bitbucket.org/sbub/raspberry-pi-gpio-web-control/downloads) the latest version of the package as raspberry-pi-gpio-web-control-[version].tgz
+
+2. Extract it using `tar xzf raspberry-pi-gpio-web-control-[version].tgz`
+
+3. Install Java, e.g. `sudo apt-get install openjdk-6-jdk`
+
+4. Go on with **7. Getting Started (from Source)**
+
+
+## Getting Started (from Source)
 
 1. Install Java, e.g. `sudo apt-get install openjdk-6-jdk`
 
 
 5. Get the project `hg clone https://bitbucket.org/sbub/raspberry-pi-gpio-web-control`
 
-6. **Get [Winstone Servlet Container at http://winstone.sourceforge.net/](http://winstone.sourceforge.net/)** and put the jar in the same directory as the start.sh.
+6. Build the project `mvn package` (It takes about 3-7 minutes to build on Raspberry Pi).
 
-7. Build the project `mvn package` (It takes about 3-7 minutes to build on Raspberry Pi).
+7. **Get [Winstone Servlet Container at http://winstone.sourceforge.net/](http://winstone.sourceforge.net/)** and put the jar in the same directory as the start.sh.
 
 8. Check the location and name of WINSTONE_JAR in start.sh
 

src/main/resources/script/createTgz.sh

+#!/bin/bash
+
+# Copyright 2012 der-bub.de
+# http://www.der-bub.de
+# Author: Sebastian Bub (sebastian@der-bub.de)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+OLDDIR=`pwd`
+DIR=`dirname "$0"`
+
+cd "${DIR}"
+VERSION=`LC_ALL=en_US hg summary| grep parent | awk '{print $2}'| sed 's/.*://'`
+export VERSION
+echo creating tgz for version $VERSION
+echo
+cd -
+
+# (I know that you might get in trouble if project directory is sym linked
+cd "${DIR}/../../../../.."
+
+echo "This is version $VERSION of project https://bitbucket.org/sbub/raspberry-pi-gpio-web-control" >  raspberry-pi-gpio-web-control/VERSION
+
+tar czvf raspberry-pi-gpio-web-control-${VERSION}.tgz \
+    raspberry-pi-gpio-web-control/VERSION \
+    raspberry-pi-gpio-web-control/README.md \
+    raspberry-pi-gpio-web-control/cron.conf.MAY_BE_CHANGED \
+    raspberry-pi-gpio-web-control/gpio.conf.MUST_BE_CHANGED \
+    raspberry-pi-gpio-web-control/log4j.properties \
+    raspberry-pi-gpio-web-control/logs/_doNotDelete \
+    raspberry-pi-gpio-web-control/src/main/resources/init.d/gpio-winstone \
+    raspberry-pi-gpio-web-control/start.sh \
+    raspberry-pi-gpio-web-control/stop.sh \
+    raspberry-pi-gpio-web-control/target/raspberry-pi-gpio-web-control-1.0-SNAPSHOT.war
+
+rm raspberry-pi-gpio-web-control/VERSION
+
+cd "$OLDDIR"
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.