summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-01 16:38:56 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-01 16:38:56 +0000
commiteae7da6510a6dba352ba895b0986b7f2fa679acf (patch)
treef8a3ba5d073c01583ee93a21c5d85f83ba926379 /contrib
parent63a9f8da61255ee5dc19c27b9422ab6889bc62ed (diff)
downloadgcc-eae7da6510a6dba352ba895b0986b7f2fa679acf.tar.gz
contrib:
* texi2pod.pl: Handle @samp and @url inside verbatim blocks. Handle @heading. Handle enumerated lists with starting numbers and extra headings. gcc: * doc/include/gpl_v3.texi: Update for manpage generation. * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of gpl.texi. * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi. * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include gpl_v3.texi instead of gpl.texi. (gpl.pod): New. gcc/fortran: * gfortran.texi: Include gpl_v3.texi instead of gpl.texi * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of gpl.texi. gcc/java: * gcj.texi: Include gpl_v3.texi instead of gpl.texi * Make-lang.in (TEXI_JAVA_FILES): Include gpl_v3.texi instead of gpl.texi. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133794 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog6
-rwxr-xr-xcontrib/texi2pod.pl16
2 files changed, 18 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 88cf772b96e..e763771b802 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-01 Joseph Myers <joseph@codesourcery.com>
+
+ * texi2pod.pl: Handle @samp and @url inside verbatim blocks.
+ Handle @heading. Handle enumerated lists with starting numbers
+ and extra headings.
+
2008-03-10 Janis Johnson <janis187@us.ibm.com>
* patch_tester.sh (initialization): Initialize svnpatch and stop.
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index 3931e1ce3e2..fcdc14550ba 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/texi2pod.pl
@@ -218,9 +218,11 @@ while(<$inf>) {
s/\@\}/&rbrace;/g;
s/\@\@/&at;/g;
- # Inside a verbatim block, handle @var specially.
+ # Inside a verbatim block, handle @var, @samp and @url specially.
if ($shift ne "") {
s/\@var\{([^\}]*)\}/<$1>/g;
+ s/\@samp\{([^\}]*)\}/"$1"/g;
+ s/\@url\{([^\}]*)\}/<$1>/g;
}
# POD doesn't interpret E<> inside a verbatim block.
@@ -250,7 +252,7 @@ while(<$inf>) {
next;
};
- /^\@(?:section|unnumbered|unnumberedsec|center)\s+(.+)$/
+ /^\@(?:section|unnumbered|unnumberedsec|center|heading)\s+(.+)$/
and $_ = "\n=head2 $1\n";
/^\@subsection\s+(.+)$/
and $_ = "\n=head3 $1\n";
@@ -321,8 +323,14 @@ while(<$inf>) {
/^\@itemx?\s*(.+)?$/ and do {
if (defined $1) {
if ($ic) {
- # Entity escapes prevent munging by the <> processing below.
- $_ = "\n=item $ic\&LT;$1\&GT;\n";
+ if ($endw eq "enumerate") {
+ $_ = "\n=item $ic $1\n";
+ $ic =~ s/(\d+)/$1 + 1/eg;
+ } else {
+ # Entity escapes prevent munging by the <>
+ # processing below.
+ $_ = "\n=item $ic\&LT;$1\&GT;\n";
+ }
} else {
$_ = "\n=item $1\n";
}