]>
Dogcows Code - chaz/tar/blob - doc/convtexi.pl
1 #!/usr/local/bin/perl -- # -*-Perl-*-
2 eval "exec /usr/local/bin/perl -S $0 $*"
5 # Copy a Texinfo file, replacing @value's, @FIXME's and other gooddies.
7 # Copyright (C) 1996, 2001 Free Software Foundation, Inc.
9 # This program is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the
11 # Free Software Foundation; either version 2, or (at your option) any later
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17 # Public License for more details.
19 # You should have received a copy of the GNU General Public License along
20 # with this program. If not, write to the Free Software Foundation, Inc.,
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 # François Pinard <pinard@iro.umontreal.ca>, 1996.
28 if (/^\@c()$/ || /^\@c (.*)/ || /^\@(include .*)/)
33 print "\@strong{\@\@c} $1\n";
37 print "\@strong{\@\@c} $1\n";
40 print "\@end format\n";
44 $delay .= "\@format\n";
45 $delay .= "\@strong{\@\@c} $1\n";
49 $delay .= "\@strong{\@\@c} $1\n";
52 $delay .= "\@end format\n";
65 $_ = <> while ($_ && ! /^\@end macro/);
68 elsif (/^\@set ([^ ]+) (.*)/)
73 elsif (/^\@UNREVISED/)
75 print "\@quotation\n";
76 print "\@emph{(This message will disappear, once this node is revised.)}\n";
77 print "\@end quotation\n";
82 while (/\@value{([^\}]*)}/)
90 $_ = "$`\@strong{<UNDEFINED>}$1\@strong{</UNDEFINED>}$'";
93 while (/\@FIXME-?([a-z]*)\{/)
95 $tag = $1 eq '' ? 'fixme' : $1;
97 print "$`\@strong{<$tag>}";
119 print "$`\@strong{</$tag>}";
This page took 0.039736 seconds and 4 git commands to generate.