Add a release tool to SVN.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10717 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2010-09-02 21:53:34 +00:00
parent 95512dfa5a
commit 26eccbd049

28
tools/mkrelease.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/sh -x
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py
mkdir /osgeo/openlayers/docs/api/$VERSION
cd ..
cp build/OpenLayers.js /osgeo/openlayers/docs/api/$VERSION
cp -a img/ /osgeo/openlayers/docs/api/$VERSION
cp -a theme/ /osgeo/openlayers/docs/api/$VERSION
# First remove all .pyc files from the directory.
rm tools/*.pyc
# move single file version
cp build/OpenLayers.js OpenLayers.js
rm build/OpenLayers.js
cd ..
mkdir OpenLayers-$VERSION/doc/devdocs
naturaldocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/devdocs -p OpenLayers-$VERSION/doc_config -s Default OL
mkdir OpenLayers-$VERSION/doc/apidocs
naturaldocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/apidocs -p OpenLayers-$VERSION/apidoc_config -s Default OL
tar cvfz OpenLayers-$VERSION.tar.gz OpenLayers-$VERSION/
cp OpenLayers-$VERSION.tar.gz /osgeo/openlayers/docs/download
zip -9r OpenLayers-$VERSION.zip OpenLayers-$VERSION/