texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Fix out-of-source build of texi2any_internals.tex


From: Gavin D. Smith
Subject: branch master updated: Fix out-of-source build of texi2any_internals.texi
Date: Sun, 09 Jun 2024 13:02:58 -0400

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

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 2ae196b980 Fix out-of-source build of texi2any_internals.texi
2ae196b980 is described below

commit 2ae196b9807a347473282bdb2f3c67a0707bbefb
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Jun 9 18:01:06 2024 +0100

    Fix out-of-source build of texi2any_internals.texi
    
    * doc/tp_api/Makefile.am (texi2any_internals.texi):
    Pass  "-I $(top_builddir)/tp" to perl to find generated modules.
    Filter output through sed by outputting a temporary file rather
    than piping output - this allows detecting if perl run failed.
---
 ChangeLog              | 9 +++++++++
 doc/tp_api/Makefile.am | 4 +++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ae05cc6529..bad2a2a32c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-06-09  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Fix out-of-source build of texi2any_internals.texi
+
+       * doc/tp_api/Makefile.am (texi2any_internals.texi):
+       Pass  "-I $(top_builddir)/tp" to perl to find generated modules.
+       Filter output through sed by outputting a temporary file rather
+       than piping output - this allows detecting if perl run failed.
+
 2024-06-06  Patrice Dumas  <pertusus@free.fr>
 
        * Makefile.am (po_document-check): Check for cdt, pcdt, cdt_string
diff --git a/doc/tp_api/Makefile.am b/doc/tp_api/Makefile.am
index e4acd5ce46..4a7332c620 100644
--- a/doc/tp_api/Makefile.am
+++ b/doc/tp_api/Makefile.am
@@ -74,6 +74,8 @@ texi2any_internals_dependencies = \
   $(top_srcdir)/tp/Texinfo/Convert/Plaintext.pm
 
 texi2any_internals.texi: $(texi2any_internals_dependencies) 
texi2any_internals_indices.texi texi2any_internals_preamble.texi
-       $(PERL) -I $(top_srcdir)/Pod-Simple-Texinfo/lib/ -I $(top_srcdir)/tp/ 
-I $(top_srcdir)/tp/maintain/lib/Text-Unidecode/lib/ -I 
$(top_srcdir)/tp/maintain/lib/libintl-perl/lib/ -I 
$(top_srcdir)/tp/maintain/lib/Unicode-EastAsianWidth/lib/ 
$(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl --base-level=section --preamble - 
--subdir=api_includes $(texi2any_internals_dependencies) < 
$(srcdir)/texi2any_internals_preamble.texi | sed -e 's/^@bye/@__bye/' | sed -e 
'/^@__bye/r $(srcdir)/texi2any_internal [...]
+       if $(PERL) -I $(top_builddir)/tp -I 
$(top_srcdir)/Pod-Simple-Texinfo/lib/ -I $(top_srcdir)/tp/ -I 
$(top_srcdir)/tp/maintain/lib/Text-Unidecode/lib/ -I 
$(top_srcdir)/tp/maintain/lib/libintl-perl/lib/ -I 
$(top_srcdir)/tp/maintain/lib/Unicode-EastAsianWidth/lib/ 
$(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl --base-level=section --preamble - 
--subdir=api_includes $(texi2any_internals_dependencies) < 
$(srcdir)/texi2any_internals_preamble.texi >$@.tmp ; then \
+         cat $@.tmp  | sed -e 's/^@bye/@__bye/' | sed -e '/^@__bye/r 
$(srcdir)/texi2any_internals_indices.texi' | sed -e 's/^@__bye//' > $@ ; \
+       fi ; rm $@.tmp
 
 endif



reply via email to

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