From 3623889f3a30c2295af55dd39261611cefc6fcd3 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 17 Aug 2006 12:27:36 +0000 Subject: [PATCH] sbp points out that multiple perl calls are unneccesary. merging them all into one makes this code run about twice as fast. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- build/docs.sh | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/build/docs.sh b/build/docs.sh index 9ee82dac83..07c7917f06 100755 --- a/build/docs.sh +++ b/build/docs.sh @@ -2,9 +2,18 @@ rm ../doc/reference.html CLASSES="Map Layer Layer.HTTPRequest Layer.Grid Layer.WMS Layer.KaMap Layer.EventPane Layer.Google Layer.VirtualEarth Layer.Markers Layer.Text Layer.GeoRSS Layer.Boxes Icon Marker Marker.Box Tile Tile.Image Tile.WFS Control Control.LayerSwitcher Control.MouseDefaults Control.MouseToolbar Control.PanZoom Control.PanZoomBar Control.Permalink Control.Scale LonLat Size Pixel Bounds" -echo "OpenLayers Class Reference Documentation" >> ../doc/reference.html +echo " + + OpenLayers Class Reference Documentation + + + " >> ../doc/reference.html for i in $CLASSES; do echo "
OpenLayers.$i
" >> ../doc/reference.html @@ -14,16 +23,17 @@ echo "
" >> ../doc/reference.html for i in $CLASSES; do cat ../doc/$i.txt | \ -perl -pe 's!^(.*?) -- (.*?) -- (.*?)$! $1$2$3!g' | \ -perl -pe 's!^( \* )?(.*?) -- (.*?)$! $2$3!g' | \ -perl -pe 's!^ \* (.*)$! \n\n

$1

\n !' | \ -perl -pe 's!{OpenLayers.(.*?)\|(.*?)}!\2!g' | \ -perl -pe 's!{OpenLayers.(.*?)}!OpenLayers.$1!' | \ -perl -pe 's!{([A-Za-z]+?)\|(.+?)}!\2<\/span>!g' | \ -perl -pe 's!{([A-Za-z]+?)}!$1<\/span>!g' | \ -perl -pe 's!^\* (.*)$!
\n

$1

\n!' | \ -perl -pe 's!^OpenLayers\.(.*)$!

OpenLayers.$1

!' \ +perl -pe 's!^(.*?) -- (.*?) -- (.*?)$!
!g; + s!^( \* )?(.*?) -- (.*?)$! !g; + s!^ \* (.*)$!
$1$2$3
$2$3
\n\n

$1

\n !; + s!{OpenLayers.(.*?)\|(.*?)}!\2!g; + s!{OpenLayers.(.*?)}!OpenLayers.$1!; + s!{([A-Za-z]+?)\|(.+?)}!\2<\/span>!g; + s!{([A-Za-z]+?)}!$1<\/span>!g; + s!^\* (.*)$!
\n

$1

\n!; + s!^OpenLayers\.(.*)$!

OpenLayers.$1

!' \ >> ../doc/reference.html echo '
' >> ../doc/reference.html done -echo "" >> ../doc/reference.html +echo " +" >> ../doc/reference.html