texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: A different work around for generated Texinfo fil


From: Patrice Dumas
Subject: branch master updated: A different work around for generated Texinfo file problem
Date: Mon, 14 Feb 2022 09:33:54 -0500

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 cf8f0cde31 A different work around for generated Texinfo file problem
cf8f0cde31 is described below

commit cf8f0cde3118519f06cfa36bdbe444a877519d3e
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Feb 14 15:33:29 2022 +0100

    A different work around for generated Texinfo file problem
    
    * autogen.sh: setup a fake doc/tp_api/tp_api.texi to be able
    to run automake even if the file is not present, with a file
    timestamp set in the paste. Report from Werner Lemberg and solution
    adaptated from Gavin.
    
    * doc/tp_api/Makefile.am: Reset nodist_info_TEXINFOS to
    info_TEXINFOS, otherwise the file will not be in the distribution
    and users without mean to regenerate it will not have it.
---
 ChangeLog              | 13 +++++++++++++
 autogen.sh             |  8 ++++++++
 doc/tp_api/Makefile.am |  2 +-
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 7ea044656a..d0c6423b0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2022-02-14  Patrice Dumas  <pertusus@free.fr>
+
+       A different work around for generated Texinfo file problem
+
+       * autogen.sh: setup a fake doc/tp_api/tp_api.texi to be able
+       to run automake even if the file is not present, with a file
+       timestamp set in the paste. Report from Werner Lemberg and solution
+       adaptated from Gavin.
+
+       * doc/tp_api/Makefile.am: Reset nodist_info_TEXINFOS to
+       info_TEXINFOS, otherwise the file will not be in the distribution
+       and users without mean to regenerate it will not have it.
+
 2022-02-14  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Work around generated Texinfo file problem
diff --git a/autogen.sh b/autogen.sh
index bacf4d5c97..040d449464 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -25,6 +25,14 @@ cmd="(cd tp/tests && ../maintain/regenerate_cmd_tests.sh 
Makefile.onetst . -base
 echo "  $cmd"
 $chicken eval $cmd || exit 1
 
+# missing tp_api.texi stops automake.  Set up a fake tp_api.texi
+# with a file timestamp set in the past, if tp_api.texi is not present
+if test '!' -s doc/tp_api/tp_api.texi ; then
+  cmd="echo '@setfilename tp_api.info' > doc/tp_api/tp_api.texi; touch -t 
200001010000 doc/tp_api/tp_api.texi"
+  echo "  $cmd"
+  $chicken eval $cmd || exit 1
+fi
+
 # This overwrites lots of files with older versions.
 #cmd="autoreconf --verbose --force --install --include=m4"
 
diff --git a/doc/tp_api/Makefile.am b/doc/tp_api/Makefile.am
index 7629b0122b..bd36d99372 100644
--- a/doc/tp_api/Makefile.am
+++ b/doc/tp_api/Makefile.am
@@ -31,7 +31,7 @@ AM_MAKEINFOHTMLFLAGS = --split=chapter
 
 # since the tp_api 'manual' is referred to extensively in the
 # customization_api, we setup the build targets.
-nodist_info_TEXINFOS = tp_api.texi
+info_TEXINFOS = tp_api.texi
 
 TEXINFO_TEX = ../texinfo.tex
 



reply via email to

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