}
else
{
+ # in program mode, output the program line. the only thing we need
+ # to do is to avoid $ signs because that confuses doxygen. since
+ # we don't want formulas rendered in the program text anyway,
+ # simply replace them by spaces (it would be nice to suppress their
+ # meaning somehow, but I don't know how...)
+ s/\$//g;
+
print " * $_";
}
} while (<>);
# adding a space
#
# we also need to somehow strip the $ signs out of the svn Id: string
- # to avoid trouble. The same holds for the $Name:$ tags.
+ # to avoid trouble. The same holds for the $Name:$ tags. All other $
+ # signs are simply removed.
if ( ! m!^\s*//! ) {
s!/\*!/ \*!g;
s!\*/!\* /!g;
s!\$Id:(.*)\$!Subversion Id: \1!g;
s!\$Name:?(.*)\$!Name: \1!g;
+ s!\$!!g;
+
print " * $_";
} else {
# for comments, all we do is replace section headers, and
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams