Code

missing bits atted
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 8 Sep 2008 22:12:54 +0000 (22:12 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 8 Sep 2008 22:12:54 +0000 (22:12 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1496 a5681a0c-68f1-0310-ab6d-d61299d08faa

website/award-white.png [new file with mode: 0644]
website/bin/pod2wml.classic.sh [new file with mode: 0755]
website/forum.wml [new file with mode: 0644]
website/inc/favicon.ico [new file with mode: 0644]
website/inc/happy-tobi.png [new file with mode: 0644]
website/inc/rrdtool-gold.png [new file with mode: 0644]
website/oscon-120x60.gif [new file with mode: 0644]
website/stream-pop.png [new file with mode: 0644]

diff --git a/website/award-white.png b/website/award-white.png
new file mode 100644 (file)
index 0000000..40d0b24
Binary files /dev/null and b/website/award-white.png differ
diff --git a/website/bin/pod2wml.classic.sh b/website/bin/pod2wml.classic.sh
new file mode 100755 (executable)
index 0000000..e94c673
--- /dev/null
@@ -0,0 +1,39 @@
+pod2wml (){
+ base=$1
+ [ -z "$descr" ] && descr=$base
+ [ -z "$menu" ] && menu=$descr
+ pod2html --infile=$base.pod --outfile=$base.pre --noindex --htmlroot='$(ROOT)' --podroot=$SITEROOT --podpath=$PODPATH
+ $SITEROOT/bin/fix-pod2html.pl $base.pre | $SITEROOT/bin/fix-hrefs.pl >$base.html
+ echo "<nav:but ${sect}_$base      \"$menu\"           $base/>" >>navbar.inc
+ printf "<dt><a href=\"$base.en.html\">" >>index.inc
+ grep $base $base.pod |fgrep ' - '|head -1|sed 's| - |</a></dt><dd>|' >>index.inc 
+ echo "</dd>" >>index.inc
+ echo "<page page=\"${sect}_$base\"" > $base.wml
+ perl -0777 -n -e 's|E<lt>|<|g;s|E<gt>|>|g;m|=head1 AUTHO\S+\s*(.+)| && do {$a=$1;$e="no\@address.nowhere";$a=~ s/\s*<(.+?)>\s*,?// and $e=$1; $e=~ s/\s\S+\s/\@/;print "author=\"$a <$e>\"/>\n"}' $base.pod >>$base.wml
+ # perl -0777 -n -e 's|.*?(<h1.+)</body>.*|$1|s;for($i=5;$i>0;$i--){$j=$i-1;s|(</?h)$j>|$1$i>|g}; s|<h2><a name="name">NAME</a></h2>.*?<p>(.+?) - .*?</p>|<h1>$1</h1>|s;s|<p>\s*</p>||g;s|<hr.*?>||g;s|</pre>\s*<pre>|\n|g;s|<br\s*/>\s*</dt>|</dt>|g;s|</dd>\s*<dd>||g;print ' $base.html >>$base.wml
+ perl -0777 -n -e '
+  s|.*?(<h1.+)</body>.*|$1|s;
+  for($i=5;$i>0;$i--){
+         $j=$i-1;
+         s|(</?h)$j>|$1$i>|g
+  };
+  s|<h2.*?>.*?NAME.*?</h2>.*?<p.*?>\s*(.+?)\s*- .*?</p>|<h1>$1</h1>|s;
+  s{<li></li>(.+?)(?=<li>|</?ul>|</?ol>)}{<li>$1</li>}sg;
+  s|<dt><strong>\s*(.+?)</strong>\s*<dd>|<dt>$1</dt>\n<dd>|sg;   
+  s|<p>\s*</p>|\n|g;
+  s|\n\s|\n|g;
+  s|\s*</pre>\s*<pre>\s*|\n\n|g;
+  s|(\S)</pre>|$1\n</pre>|g;
+  s|<pre>(.+?)</pre>|<protect><pre>$1</pre></protect>|gs;
+#  s|<strong>\s*(.+?)\s*</strong><br />\s+</dt>|$1</dt>\n|g;
+  s|<hr />\s*<h2>|<h2>|g;
+  s|<dd>\s*</dd>||gs;
+  s|<a href=".*?/website|<a href="\$(ROOT)|g; 
+  s|(<h2><a.*?>)\s*(\S)(.+?)\s*(</a></h2>)|$1$2\L$3\E$4|g;
+  print 
+ ' $base.html >>$base.wml
+# rm $base.html
+ perl -i~ -0777 -p -e 's|</dd>\s*<pre(.*?)</pre>\s*<dd>|</dd><dd><pre$1</pre></dd><dd>|sg' $base.wml
+ rm $base.html $base.pre
+ descr=""
+}
diff --git a/website/forum.wml b/website/forum.wml
new file mode 100644 (file)
index 0000000..d10614e
--- /dev/null
@@ -0,0 +1,5 @@
+<PAGE AUTHOR = "Tobias Oetiker <tobi@oetiker.ch>"
+        PAGE = "forum">
+       
+<a id="nabblelink" href="http://n2.nabble.com/RRD-Mailinglists-f937164.html">RRD Mailinglists</a>
+<script src="http://n2.nabble.com/embed/f937164"></script>
diff --git a/website/inc/favicon.ico b/website/inc/favicon.ico
new file mode 100644 (file)
index 0000000..7d08dd4
Binary files /dev/null and b/website/inc/favicon.ico differ
diff --git a/website/inc/happy-tobi.png b/website/inc/happy-tobi.png
new file mode 100644 (file)
index 0000000..a0984cd
Binary files /dev/null and b/website/inc/happy-tobi.png differ
diff --git a/website/inc/rrdtool-gold.png b/website/inc/rrdtool-gold.png
new file mode 100644 (file)
index 0000000..e60eacc
Binary files /dev/null and b/website/inc/rrdtool-gold.png differ
diff --git a/website/oscon-120x60.gif b/website/oscon-120x60.gif
new file mode 100644 (file)
index 0000000..1d617bf
Binary files /dev/null and b/website/oscon-120x60.gif differ
diff --git a/website/stream-pop.png b/website/stream-pop.png
new file mode 100644 (file)
index 0000000..02a2f7c
Binary files /dev/null and b/website/stream-pop.png differ