#!/bin/sh -x VERSION=$1 DIR="labs-on-a-stick-$VERSION" #rm -rf *-* rm -rf featureserver rm -rf $DIR mkdir $DIR mkdir $DIR/conf wget -c http://cheeseshop.python.org/packages/source/P/Paste/Paste-1.3.tar.gz tar -zvxf Paste-1.3.tar.gz cp -r Paste-1.3/paste $DIR wget -c http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-1.7.1.tar.gz tar -zvxf simplejson-1.7.1.tar.gz cp -r simplejson-1.7.1/simplejson $DIR rm -rf $DIR/simplejson/tests wget -c http://cheeseshop.python.org/packages/source/w/wsgiref/wsgiref-0.1.2.zip unzip wsgiref-0.1.2.zip cp -r wsgiref-0.1.2/wsgiref $DIR mkdir $DIR/dists for i in OpenLayers-2.4-rc5 GeoSearchCore-alpha1 tilecache-1.8.1 featureserver-1.01 do if [ -e $i.tar.gz ]; then tar -zvxf $i.tar.gz cp $i.* $DIR/dists fi done svn export http://svn.featureserver.org/trunk/featureserver cp featureserver.cfg $DIR/conf cp -r featureserver/FeatureServer $DIR/ rm $DIR/FeatureServer/Service/HTML.py cp http_server.py $DIR/ cp run.sh $DIR/ cp run_windows.bat $DIR/ cp LICENSE.txt $DIR mkdir $DIR/licenses cp simplejson-1.7.1/LICENSE.txt $DIR/licenses/mit-license.txt cp featureserver/LICENSE.txt $DIR/licenses/featureserver-license.txt if [ -e GeoSearchCore-alpha1 ]; then cp GeoSearchCore-alpha1/LICENSE.txt $DIR/licenses/geosearch-license.txt fi if [ -e OpenLayers-2.4-rc5 ]; then cp OpenLayers-2.4-rc5/release-license.txt $DIR/licenses/bsd-license.txt fi cp README $DIR/README.txt cp -r docs $DIR/ find $DIR -name .svn | xargs rm -rf tar -zvcf $DIR.tar.gz $DIR zip -9r $DIR.zip $DIR