From 5f69105e08f4d0a16dbcc2e731d51fb603234a6c Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 23 May 2011 15:45:07 +0000 Subject: [PATCH] Updated tools for releasing. git-svn-id: http://svn.openlayers.org/trunk/openlayers@11998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tools/branch.sh | 5 +++++ tools/rc.sh | 13 +++++++++++++ tools/release.sh | 14 +++++++------- 3 files changed, 25 insertions(+), 7 deletions(-) create mode 100755 tools/branch.sh create mode 100755 tools/rc.sh diff --git a/tools/branch.sh b/tools/branch.sh new file mode 100755 index 0000000000..ec07d02e32 --- /dev/null +++ b/tools/branch.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +RELEASE=$1 + +svn copy -m "Branching for the $RELEASE release" http://svn.openlayers.org/trunk/openlayers http://svn.openlayers.org/branches/openlayers/$RELEASE diff --git a/tools/rc.sh b/tools/rc.sh new file mode 100755 index 0000000000..73b1835abb --- /dev/null +++ b/tools/rc.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +RELEASE=$1 +RC=$2 + +svn co http://svn.openlayers.org/branches/openlayers/$RELEASE +cd $RELEASE +sed -i -e "s/OpenLayers.VERSION_NUMBER=.*/OpenLayers.VERSION_NUMBER=\"Release $1-$2\";/" lib/OpenLayers.js +sed -i -e "s/VERSION_NUMBER: .*,/VERSION_NUMBER: \"Release $1-$2\",/" lib/OpenLayers/SingleFile.js +svn diff; +sleep 10; +svn ci -m "Updating version numbers for $1-$2". +svn cp -m "Tagging the $1-$2 release." http://svn.openlayers.org/branches/openlayers/$1 http://svn.openlayers.org/tags/openlayers/release-$1-$2 diff --git a/tools/release.sh b/tools/release.sh index 307b3f46a7..85124e8790 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -24,17 +24,17 @@ mkdir doc/devdocs mkdir doc/apidocs rm tools/*.pyc -mkdir /www/openlayers/htdocs/api/$VERSION -cp OpenLayers.js /www/openlayers/htdocs/api/$VERSION -cp -a img/ /www/openlayers/htdocs/api/$VERSION -cp -a theme/ /www/openlayers/htdocs/api/$VERSION +mkdir /osgeo/openlayers/docs/api/$VERSION +cp OpenLayers.js /osgeo/openlayers/docs/api/$VERSION +cp -a img/ /osgeo/openlayers/docs/api/$VERSION +cp -a theme/ /osgeo/openlayers/docs/api/$VERSION cd .. -~/nd/NaturalDocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/devdocs -p OpenLayers-$VERSION/doc_config -s Small OL -~/nd/NaturalDocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/apidocs -p OpenLayers-$VERSION/apidoc_config -s Small OL +naturaldocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/devdocs -p OpenLayers-$VERSION/doc_config -s Small OL +naturaldocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/apidocs -p OpenLayers-$VERSION/apidoc_config -s Small OL tar cvfz OpenLayers-$VERSION.tar.gz OpenLayers-$VERSION/ zip -9r OpenLayers-$VERSION.zip OpenLayers-$VERSION/ -cp OpenLayers-$VERSION.* /www/openlayers/htdocs/download +cp OpenLayers-$VERSION.* /osgeo/openlayers/docs/download