-
Notifications
You must be signed in to change notification settings - Fork 38
/
mkrelease.sh
executable file
·28 lines (22 loc) · 1.02 KB
/
mkrelease.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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/