Using CSS tidy to compress stylesheets on the dev site always, and to

include tidy-ified stylesheets in the released builds.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2011-02-25 10:23:42 +00:00
parent 3f47ab809c
commit be040c6614
2 changed files with 10 additions and 2 deletions

View File

@@ -4,11 +4,15 @@ VERSION=$1
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py full
./build.py -c closure full
cp OpenLayers.js ..
cd ..
for i in google ie6-style style; do
csstidy theme/default/$i.css --template=highest theme/default/$i.tidy.css
done
mkdir doc/devdocs
mkdir doc/apidocs
rm tools/*.pyc

View File

@@ -22,7 +22,11 @@ if [ ! o$REV = $OLD_REV ]; then
cp OpenLayers.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!../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