improvements to the release.sh script (refs #525)

This commit is contained in:
Éric Lemoine
2012-06-15 11:08:18 +02:00
parent 96dcf6063e
commit 69214d11b1

View File

@@ -1,5 +1,28 @@
#!/bin/sh #!/bin/sh
#
#
# Usage:
# $ ./release.sh <release_number>
#
# Example:
# $ ./release.sh 2.12-rc7
#
# This script should be run on the www.openlayers.org server.
#
# What the script does:
#
# 1. Download release tarball from from GitHub.
# 2. Create builds using the Closure Compiler.
# 3. Run the exampleparser.py script to create the examples index.
# 4. Run csstidy for each CSS file in theme/default.
# 5. Publish builds and resources on api.openlayers.org.
# 6. Build the API docs.
# 7. Create release archives
# 8. Make the release archives available on openlayers.org/downloads.
#
#
VERSION=$1 VERSION=$1
wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip
@@ -17,20 +40,21 @@ mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c none full OpenLayers.debug.js ./build.py -c none full OpenLayers.debug.js
./build.py -c none mobile OpenLayers.mobile.debug.js ./build.py -c none mobile OpenLayers.mobile.debug.js
./build.py -c none light OpenLayers.light.debug.js ./build.py -c none light OpenLayers.light.debug.js
cp OpenLayers.js .. mv OpenLayers*.js ../
cp OpenLayers.*.js .. rm -rf closure-compiler
rm closure*.py
rm ../tools/closure-compiler.jar rm ../tools/closure-compiler.jar
cd .. cd ..
cd tools cd tools
python exampleparser.py python exampleparser.py
cd .. cd ..
for i in google ie6-style style; do for i in google ie6-style style style.mobile; do
csstidy theme/default/$i.css --template=highest theme/default/$i.tidy.css csstidy theme/default/$i.css --template=highest theme/default/$i.tidy.css
done done
mkdir doc/devdocs mkdir -p doc/devdocs
mkdir doc/apidocs mkdir -p doc/apidocs
rm tools/*.pyc rm tools/*.pyc
mkdir -p /osgeo/openlayers/sites/openlayers.org/api/$VERSION mkdir -p /osgeo/openlayers/sites/openlayers.org/api/$VERSION