File: mkrelease.sh

package info (click to toggle)
openlayers 2.11%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 60,144 kB
  • ctags: 10,906
  • sloc: xml: 7,435; python: 778; sh: 68; makefile: 30
file content (28 lines) | stat: -rwxr-xr-x 1,041 bytes parent folder | download
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
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/