texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * doc/Makefile.am (pod2texi.texi): postprocess po


From: Patrice Dumas
Subject: branch master updated: * doc/Makefile.am (pod2texi.texi): postprocess pod2texi.texi to substitute the MetaCPAN url that does not exist by the url on the GNU website.
Date: Sun, 27 Oct 2024 11:53:04 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 66fce31207 * doc/Makefile.am (pod2texi.texi): postprocess 
pod2texi.texi to substitute the MetaCPAN url that does not exist by the url on 
the GNU website.
66fce31207 is described below

commit 66fce31207823137f8a014644b65e5a349bc6a77
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 27 17:53:00 2024 +0100

    * doc/Makefile.am (pod2texi.texi): postprocess pod2texi.texi to
    substitute the MetaCPAN url that does not exist by the url on the GNU
    website.
---
 ChangeLog         | 6 ++++++
 doc/Makefile.am   | 4 ++++
 doc/pod2texi.texi | 2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ffc391f0aa..fe5abf023d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-10-27  Patrice Dumas  <pertusus@free.fr>
+
+       * doc/Makefile.am (pod2texi.texi): postprocess pod2texi.texi to
+       substitute the MetaCPAN url that does not exist by the url on the GNU
+       website.
+
 2024-10-27  Patrice Dumas  <pertusus@free.fr>
 
        pod2texi: Use an @url to convert L<...> referring to external modules
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 0b0b6c9751..0a10caa909 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -41,8 +41,12 @@ if BUILD_PERL_API_TEXI
 # pod2texi.pl), as we include from the Texinfo manual.  The file name
 # for the included section is therefore determined by the information
 # in the Pod file NAME section.
+# Since Pod::Simple::Texinfo is not in CPAN, the @url first argument
+# is post-processed by a sed one liner to point to the GNU web site. 
 $(srcdir)/pod2texi.texi: $(pod2texi_pl)
        $(MAKEINFO_ENVIRONMENT) $(PERL) -I 
$(top_srcdir)/Pod-Simple-Texinfo/lib/ 
$(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl --base-level=subsubsection 
--no-section-nodes --headings-as-sections --subdir=$(srcdir) $(pod2texi_pl) > 
/dev/null
+       mv $(srcdir)/pod2texi.texi $(srcdir)/pod2texi_tmp.texi
+       sed 
's;https://metacpan.org/pod/Pod::Simple::Texinfo;https://www.gnu.org/software/texinfo/manual/Pod/Simple/Texinfo.html;'
 $(srcdir)/pod2texi_tmp.texi > $(srcdir)/pod2texi.texi
 endif
 
 TXI_MODULES_ENV = srcdir="$(srcdir)"; export srcdir;
diff --git a/doc/pod2texi.texi b/doc/pod2texi.texi
index bf0f2d388c..46ed5d6268 100644
--- a/doc/pod2texi.texi
+++ b/doc/pod2texi.texi
@@ -155,7 +155,7 @@ Display version information and exit.
 @subsubheading pod2texi SEE ALSO
 @anchor{pod2texi SEE ALSO}
 
-@url{https://metacpan.org/pod/Pod::Simple::Texinfo, Pod::Simple::Texinfo}.  
@url{https://metacpan.org/pod/perlpod, perlpod}.  The Texinfo manual.
+@url{https://www.gnu.org/software/texinfo/manual/Pod/Simple/Texinfo.html, 
Pod::Simple::Texinfo}.  @url{https://metacpan.org/pod/perlpod, perlpod}.  The 
Texinfo manual.
 Texinfo home page: @url{https://www.gnu.org/software/texinfo/}
 
 @subsubheading pod2texi COPYRIGHT AND LICENSE



reply via email to

[Prev in Thread] Current Thread [Next in Thread]