Skip to content

Commit

Permalink
Update the dev dir building script to take the '?mobile' flagged .js
Browse files Browse the repository at this point in the history
files and use the mobile OL build on them.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
  • Loading branch information
crschmidt committed Feb 25, 2011
1 parent 76a420b commit b0b297b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/update_dev_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ if [ ! o$REV = $OLD_REV ]; then
python exampleparser.py
cd /osgeo/openlayers/docs/dev/build
./build.py -c closure tests.cfg
./build.py -c closure mobile.cfg OpenLayers.mobile.js

cp OpenLayers.js ..
cp OpenLayers.mobile.js ..

cd ..
for i in google ie6-style style; do
csstidy theme/default/$i.css --template=highest theme/default/$i.tidy.css
cp theme/default/$i.tidy.css theme/default/$i.css
done

sed -i -e 's!../lib/OpenLayers.js\?mobile!../OpenLayers.mobile.js!' examples/*.html
sed -i -e 's!../lib/OpenLayers.js!../OpenLayers.js!' examples/*.html
naturaldocs -i /osgeo/openlayers/docs/dev/lib -o HTML /osgeo/openlayers/dev/apidocs -p /osgeo/openlayers/docs/dev/apidoc_config -s Default OL >/dev/null
naturaldocs -i /osgeo/openlayers/docs/dev/lib -o HTML /osgeo/openlayers/dev/docs -p /osgeo/openlayers/docs/dev/doc_config -s Default OL >/dev/null
Expand Down

0 comments on commit b0b297b

Please sign in to comment.