Merge pull request #261 from mpriour/multiple-builds

Package OpenLayers with 3 pre-built versions (Full, light, & mobile)
This commit is contained in:
Éric Lemoine
2012-03-05 09:02:52 -08:00
2 changed files with 11 additions and 1 deletions

View File

@@ -9,7 +9,13 @@ svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers
cd OpenLayers-$VERSION/build
mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c closure full
./build.py -c closure mobile OpenLayers.mobile.js
./build.py -c closure light OpenLayers.light.js
./build.py -c none full OpenLayers.debug.js
./build.py -c none mobile OpenLayers.mobile.debug.js
./build.py -c none light OpenLayers.light.debug.js
cp OpenLayers.js ..
cp OpenLayers.*.js ..
rm ../tools/closure-compiler.jar
cd ..

View File

@@ -26,9 +26,13 @@ if [ ! o$GITREV = $OLD_GITREV ]; then
cd /osgeo/openlayers/docs/dev/build
./build.py -c closure tests.cfg
./build.py -c closure mobile.cfg OpenLayers.mobile.js
./build.py -c closure light.cfg OpenLayers.light.js
./build.py -c none tests.cfg OpenLayers.debug.js
./build.py -c none mobile.cfg OpenLayers.mobile.debug.js
./build.py -c none light.cfg OpenLayers.light.debug.js
cp OpenLayers.js ..
cp OpenLayers.mobile.js ..
cp OpenLayers.*.js ..
cd ..
for i in google ie6-style style; do