geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r376313 - /geronimo/site/wikimesh/activemq-site/website-scrub.sh
Date Thu, 09 Feb 2006 15:11:01 GMT
Author: chirino
Date: Thu Feb  9 07:11:00 2006
New Revision: 376313

URL: http://svn.apache.org/viewcvs?rev=376313&view=rev
Log:
Fixed up the scrub script to handle the updated conent from the source website.

Modified:
    geronimo/site/wikimesh/activemq-site/website-scrub.sh

Modified: geronimo/site/wikimesh/activemq-site/website-scrub.sh
URL: http://svn.apache.org/viewcvs/geronimo/site/wikimesh/activemq-site/website-scrub.sh?rev=376313&r1=376312&r2=376313&view=diff
==============================================================================
--- geronimo/site/wikimesh/activemq-site/website-scrub.sh (original)
+++ geronimo/site/wikimesh/activemq-site/website-scrub.sh Thu Feb  9 07:11:00 2006
@@ -1,10 +1,25 @@
 #
+# Get rid of the ^Ms
+#
+perl -pi -e 's/
//g' $*
+
+#
 # To convert the absolute links to relative links
 #
 perl -pi -e 's/href="\//href="/g' $*
 
 #
-# To link logo relative to the site
+# Convert all the absolute image links to fully qualified links
+#
+perl -pi -e 's/src="\//src="http:\/\/www.activemq.org\//g' $*
+
+#
+# replace the codehaus logo
+#
+perl -0 -pi -e 's/<a href="http:\/\/www.codehaus.org" rel="nofollow"><img align="absmiddle"
border=0 src="http:\/\/drools.codehaus.org\/__unity__\/images\/logo.png"><\/a>/<a
href="http:\/\/incubator.apache.org" rel="nofollow"><img align="absmiddle" border=0
src="http:\/\/incubator.apache.org\/images\/apache-incubator-logo.png"><\/a>/gms'
$*
+
+#
+# replace the activemq logo
 #
 perl -0 -pi -e 's/<a href="http:\/\/activemq.org" rel="nofollow"><img align="absmiddle"
border=0 src="http:\/\/www.logicblaze.com\/images\/logos\/products\/ActiveMQ\/ActiveMQ_logo_200.jpg"><\/a>/<a
href="http:\/\/incubator.apache.org\/activemq" rel="nofollow"><img align="absmiddle"
border=0 src="images\/logo.gif"><\/a>/gms' $*
 
@@ -20,14 +35,6 @@
 perl -0 -pi -e 's/<script type="text\/javascript".*?<\/script>//gms' $*
 perl -0 -pi -e 's/<script src="http:\/\/www.google-analytics.com\/urchin.js" type="text\/javascript">.*?<\/script>//gms'
$*
 perl -0 -pi -e 's/<center style="padding-bottom: 2mm; margin-bottom: 4mm; border: 1px
solid #ddd">.*?<\/center>//gms' $*
-
-#
-# To remove the logicblaze logo
-#
-perl -0 -pi -e 's/<td align="right" valign="middle" style="padding:0px;margin:0px;">
-                <span id="Content"><span><span class="nobr"><a href="http:\/\/logicblaze.com"
rel="nofollow"><img align="absmiddle" border=0 src="http:\/\/activemq.codehaus.org\/LB_logo.jpg"><\/a><\/span><\/span><\/span>
-
-              <\/td>//gms' $*
 
 #
 # To remove the page print link



Mime
View raw message