summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c547ae)
raw | patch | inline | side by side (parent: 5c547ae)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 30 Jan 2006 22:32:45 +0000 (22:32 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 30 Jan 2006 22:32:45 +0000 (22:32 +0000) |
website/bin/htmlfix.sh | patch | blob | history | |
website/bin/pod2wml.sh | patch | blob | history |
diff --git a/website/bin/htmlfix.sh b/website/bin/htmlfix.sh
index 7bb2a6c9a4b7ab3e6c7daf8aa8843654aaa599eb..eacaafd796d2f56e171365443a55f3b429a2af58 100755 (executable)
--- a/website/bin/htmlfix.sh
+++ b/website/bin/htmlfix.sh
#! /bin/sh
case $1 in
*.html)
- perl -i -0777 -p -e 's/^\s*//' $1
tidy -latin1 -wrap 0 -q -asxhtml $1 >$1.fixed 2>$1.report
+ perl -i -0777 -p -e 's/^\s*//;s{="mailto:(oetiker|tobi|tobias)@(oetiker.ch|ee.ethz.ch)"}{="http://tobi.oetiker.ch/"}g;s{="mailto:(\S*?)\@(\S*?)"}{="mailto:$1@..delete..this..$2"}g' $1.fixed
if [ $? != 0 ]; then
echo Parsing: $1
egrep -v "^(HTML Tidy|$1:|To learn|Please send|HTML and CSS|Lobby your)" $1.report
diff --git a/website/bin/pod2wml.sh b/website/bin/pod2wml.sh
index d15dc0a5b226265dad52c5981797cfd518ed381b..74bcc2cbcc3fb286d07fb783930ab792c9c86717 100755 (executable)
--- a/website/bin/pod2wml.sh
+++ b/website/bin/pod2wml.sh
base=$1
[ -z "$descr" ] && descr=$base
[ -z "$menu" ] && menu=$descr
- pod2html --infile=$base.pod --outfile=$base.pre --noindex --htmlroot=$SITEROOT --podroot=$SITEROOT --podpath=$PODPATH
+ 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