This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3, 3.4, HEAD] remove @ref{...} from generated man pages
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com, gdr at integrable-solutions dot net
- Date: Wed, 25 Aug 2004 21:07:00 +0200
- Subject: [3.3, 3.4, HEAD] remove @ref{...} from generated man pages
The generated man pages for cpp and gcc still have cross references
embedded in the text. This patch prints these references in bold
(pointing to sections actually contained in the man page).
Ok to checkin?
Matthias
2004-08-25 Matthias Klose <doko@debian.org>
* texi2pod.pl: keep references of the form @ref{...}, print
them bold.
--- contrib/texi2pod.pl~ 2003-08-01 05:10:56.000000000 +0200
+++ contrib/texi2pod.pl 2004-08-25 10:50:41.000000000 +0200
@@ -349,6 +349,9 @@
s/\@w\{([^\}]*)\}/S<$1>/g;
s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
+ # keep references of the form @ref{...}, print them bold
+ s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;
+
# Cross references are thrown away, as are @noindent and @refill.
# (@noindent is impossible in .pod, and @refill is unnecessary.)
# @* is also impossible in .pod; we discard it and any newline that