#!/bin/sh VERSION=$1 DIR="featureserver-$VERSION" rm -rf $DIR rm -rf $DIR.tar.gz mkdir $DIR mkdir $DIR/doc cp doc/* $DIR/doc cp *.py $DIR cp *.cgi $DIR cp featureserver.cfg $DIR mkdir $DIR/template cp template/* $DIR/template cp -r FeatureServer $DIR cp index.html $DIR/index.html cp json.html $DIR/json.html cp json.js $DIR/json.js cp kml.html $DIR/kml.html cp LICENSE.txt $DIR/LICENSE.txt cp CHANGELOG.txt $DIR/CHANGELOG.txt find $DIR -name .svn | xargs rm -rf find $DIR -name *.pyc | xargs rm -rf tar -cvzf $DIR.tar.gz $DIR zip -r $DIR.zip $DIR