]> dev.renevier.net Git - syp.git/blob - openlayers/tools/release.sh
move templates to a specific directory
[syp.git] / openlayers / tools / release.sh
1 #!/bin/sh
2
3 VERSION=$1
4
5 svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
6 cd OpenLayers-$VERSION/build
7 ./build.py full
8 cp OpenLayers.js ..
9
10 cd ..
11
12 mkdir doc/devdocs
13 mkdir doc/apidocs
14 rm tools/*.pyc
15
16 mkdir /www/openlayers/htdocs/api/$VERSION
17 cp OpenLayers.js /www/openlayers/htdocs/api/$VERSION
18 cp -a img/ /www/openlayers/htdocs/api/$VERSION
19 cp -a theme/ /www/openlayers/htdocs/api/$VERSION
20
21 cd ..
22
23 ~/nd/NaturalDocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/devdocs -p OpenLayers-$VERSION/doc_config -s Small OL
24 ~/nd/NaturalDocs -i OpenLayers-$VERSION/lib -o HTML OpenLayers-$VERSION/doc/apidocs -p OpenLayers-$VERSION/apidoc_config -s Small OL
25
26 tar cvfz OpenLayers-$VERSION.tar.gz OpenLayers-$VERSION/
27 zip -9r OpenLayers-$VERSION.zip OpenLayers-$VERSION/
28
29 cp OpenLayers-$VERSION.* /www/openlayers/htdocs/download