cppannotations/annotations/bin/contentspage
Frank B. Brokken 777b182edd Moved all files but 'excluded', 'sf', and 'sourcetar' to ./annotations
This allowed me to standardize the sourcetar and sf/* scripts: the base
    directory (containing ./git) is now empty, except for maintenance scripts,
    while the source files and build scripts of the annotations are stored in
    a subdirectory of their own.
2013-05-29 20:44:08 +02:00

37 lines
No EOL
815 B
Bash
Executable file

#!/bin/sh
cd ../html
echo '<html><head><title>C++ Annotations Contents</title>
<link rev="made" href="mailto:Frank B. Brokken: f.b.brokken@rc.rug.nl">
</head>
<body fgcolor="black" bgcolor="white">
<script>
function load(next)
{
opener.info.location=next;
return (false);
}
</script>
'
sed '
s/"\(cplusplus[0-9]\+\.html#l[0-9]\+\)"/"\1" onclick="return load('"'"'\1'"'"')"/
s/<p>//g
' < cplusplus.html
#grep '<a href="cplusplus' cplusplus.html |
#grep '<h' |
#sed '
# s/^.*<a href=/<a href=/
# s/"\(cplusplus[0-9]\+\.html#l[0-9]\+\)"/"\1" onclick="return load('"'"'\1'"'"')"/
# s/\(.*\)<h2>/<blockquote>\1<h2>/
# s,</h2>\(.*\),</h2>\1</blockquote>,
# s/\(.*\)<h3>/<blockquote><blockquote>\1<h3>/
# s,</h3>\(.*\),</h3>\1</blockquote></blockquote>,
#'
echo '</body>
</html>
'