Commit 3090c934 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

hide_email.sh: now fixing links, too.

darcs-hash:20070605101643-65a35-05bd8a37ee118cff137251125a911ccd214c83fc.gz
parent 38bf02b9
......@@ -29,9 +29,13 @@
#
# --------------------------------------------------------------------
echo "Hiding email addresses in ${1:-.}"
echo "Postprocessing HTML in ${1:-.}: hiding email addresses, fixing links"
find ${1:-.} -name '*.html' -print0 |
xargs -0 \
sed -r -i 's/([:>;][a-z][-a-z.]*)(@[a-z][a-z]*)\.[a-z][a-z]*(["<\&])/\1\2-email.address.hidden\3/gi'
sed -r -i '
# Hide e-mail addresses
s/([:>;][a-z][-a-z.]*)(@[a-z][a-z]*)\.[a-z][a-z]*(["<\&])/\1\2-email.address.hidden\3/gi;
# Fix cross-module links
s!doxygen="([a-z]*).doxytags:../\1/" href="../\1/\1_index.html"!doxygen="\1.doxytags:../\1/" href="../\1/index.html"!g;
'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment