]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
make fetch
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Apr 2024 15:24:22 +0000 (08:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Apr 2024 16:14:23 +0000 (09:14 -0700)
build-aux/gendocs.sh
build-aux/texinfo.tex
doc/make-stds.texi
lib/Autom4te/ChannelDefs.pm
lib/Autom4te/Channels.pm
lib/Autom4te/Configure_ac.pm
lib/Autom4te/FileUtils.pm
lib/Autom4te/Getopt.pm
lib/Autom4te/XFile.pm
m4/autobuild.m4
maint.mk

index b0433c798f43238ec519eaf46ac411c003c29d62..60447d4f5c327e181372e23e26eb7e1e5271635d 100755 (executable)
@@ -2,7 +2,7 @@
 # gendocs.sh -- generate a GNU manual in many formats.  This script is
 #   mentioned in maintain.texi.  See the help message below for usage details.
 
-scriptversion=2024-01-01.00
+scriptversion=2024-01-27.16
 
 # Copyright 2003-2024 Free Software Foundation, Inc.
 #
@@ -66,7 +66,7 @@ generate_html=true
 generate_info=true
 generate_tex=true
 outdir=manual
-source_extra=
+unset source_extra
 split=node
 srcfile=
 texarg="-t @finalout"
@@ -167,7 +167,7 @@ while test $# -gt 0; do
     --html)      shift; default_htmlarg=false; htmlarg=$1;;
     --info)      shift; infoarg=$1;;
     --no-ascii)  generate_ascii=false;;
-    --no-html)   generate_ascii=false;;
+    --no-html)   generate_html=false;;
     --no-info)   generate_info=false;;
     --no-tex)    generate_tex=false;;
     --source)    shift; source_extra=$1;;
@@ -416,11 +416,49 @@ fi # end html
 printf "\nMaking .tar.gz for sources...\n"
 d=`dirname $srcfile`
 (
-  cd "$d"
-  srcfiles=`ls -d *.texinfo *.texi *.txi *.eps $source_extra 2>/dev/null` || true
-  tar czfh "$abs_outdir/$PACKAGE.texi.tar.gz" $srcfiles
-  ls -l "$abs_outdir/$PACKAGE.texi.tar.gz"
-)
+  cd "$d" || exit
+
+  # Set PATS to a list of globbing patterns that expand to
+  # file names to be put into the .tar.gz for sources.
+  # Omit patterns that do not expand to file names.
+  pats=
+
+  if case `$MAKEINFO --version | sed -e 's/^[^0-9]*//' -e 1q` in \
+       [1-6]* | 7.[01]*) false;; \
+       *) true;; \
+     esac \
+  ; then
+
+    for pat in '*.eps'; do
+      for file in $pat; do
+        test "$file" = "$pat" && test ! -e "$file" || pats="$pats $pat"
+        break
+      done
+    done
+
+    # if $MAKEINFO is recent enough, use --trace-includes on the
+    # $srcfile to get the included files of the targetted manual only
+    base=`basename "$srcfile"`
+
+    cmd="$SETLANG $MAKEINFO $commonarg --trace-includes \"$base\""
+    eval "$cmd" \
+    | tar -czhf "$abs_outdir/$PACKAGE.texi.tar.gz" \
+        --verbatim-files-from -T- -- "$base" $pats \
+        ${source_extra+"$source_extra"} \
+    && ls -l "$abs_outdir/$PACKAGE.texi.tar.gz"
+  else
+    for pat in '*.texinfo' '*.texi' '*.txi' '*.eps'; do
+     for file in $pat; do
+       test "$file" = "$pat" && test ! -e "$file" || pats="$pats $pat"
+       break
+      done
+    done
+
+    tar -czhf "$abs_outdir/$PACKAGE.texi.tar.gz" \
+       -- $pats ${source_extra+"$source_extra"} \
+    && ls -l "$abs_outdir/$PACKAGE.texi.tar.gz"
+  fi
+) || exit
 texi_tgz_size=`calcsize "$outdir/$PACKAGE.texi.tar.gz"`
 
 # \f
index f090ab56c17e50ee2f3eb9eb6e52e3564f3c08d3..fc38aa9b99a267d5ec6d04478e4ee445382d678d 100644 (file)
@@ -3,9 +3,9 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2023-10-19.19}
+\def\texinfoversion{2024-02-10.22}
 %
-% Copyright 1985, 1986, 1988, 1990-2023 Free Software Foundation, Inc.
+% Copyright 1985, 1986, 1988, 1990-2024 Free Software Foundation, Inc.
 %
 % This texinfo.tex file is free software: you can redistribute it and/or
 % modify it under the terms of the GNU General Public License as
@@ -6137,8 +6137,7 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 % normally unnmhead0 calls unnumberedzzz:
 \outer\parseargdef\unnumbered{\unnmhead0{#1}}
 \def\unnumberedzzz#1{%
-  \global\secno=0 \global\subsecno=0 \global\subsubsecno=0
-    \global\advance\unnumberedno by 1
+  \global\advance\unnumberedno by 1
   %
   % Since an unnumbered has no number, no prefix for figures.
   \global\let\chaplevelprefix = \empty
@@ -6194,8 +6193,8 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 % normally calls unnumberedseczzz:
 \outer\parseargdef\unnumberedsec{\unnmhead1{#1}}
 \def\unnumberedseczzz#1{%
-  \global\subsecno=0 \global\subsubsecno=0  \global\advance\secno by 1
-  \sectionheading{#1}{sec}{Ynothing}{\the\unnumberedno.\the\secno}%
+  \global\advance\unnumberedno by 1
+  \sectionheading{#1}{sec}{Ynothing}{\the\unnumberedno}%
 }
 
 % Subsections.
@@ -6218,9 +6217,8 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 % normally calls unnumberedsubseczzz:
 \outer\parseargdef\unnumberedsubsec{\unnmhead2{#1}}
 \def\unnumberedsubseczzz#1{%
-  \global\subsubsecno=0  \global\advance\subsecno by 1
-  \sectionheading{#1}{subsec}{Ynothing}%
-                 {\the\unnumberedno.\the\secno.\the\subsecno}%
+  \global\advance\unnumberedno by 1
+  \sectionheading{#1}{subsec}{Ynothing}{\the\unnumberedno}%
 }
 
 % Subsubsections.
@@ -6244,9 +6242,8 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 % normally unnumberedsubsubseczzz:
 \outer\parseargdef\unnumberedsubsubsec{\unnmhead3{#1}}
 \def\unnumberedsubsubseczzz#1{%
-  \global\advance\subsubsecno by 1
-  \sectionheading{#1}{subsubsec}{Ynothing}%
-                 {\the\unnumberedno.\the\secno.\the\subsecno.\the\subsubsecno}%
+  \global\advance\unnumberedno by 1
+  \sectionheading{#1}{subsubsec}{Ynothing}{\the\unnumberedno}%
 }
 
 % These macros control what the section commands do, according
@@ -8205,8 +8202,6 @@ might help (with 'rm \jobname.?? \jobname.??s')%
       \let\commondummyword\unmacrodo
       \xdef\macrolist{\macrolist}%
     \endgroup
-  \else
-    \errmessage{Macro #1 not defined}%
   \fi
 }
 
index 132476c7a383fe6f74175810867dc223273a7b21..115fca724e1e68260cf4b4642b26f6d40f62b692 100644 (file)
@@ -498,11 +498,12 @@ files.  This directory should normally be @file{/usr/local/etc}, but
 write it as @file{$(prefix)/etc}.
 (If you are using Autoconf, write it as @samp{@@sysconfdir@@}.)
 
-Do not install executables here in this directory (they probably belong
-in @file{$(libexecdir)} or @file{$(sbindir)}).  Also do not install
-files that are modified in the normal course of their use (programs
-whose purpose is to change the configuration of the system excluded).
-Those probably belong in @file{$(localstatedir)}.
+This directory is not the right place to install executables built by
+running @samp{make}---they probably belong in @file{$(libexecdir)} or
+@file{$(sbindir)}.  Also do not install here files that will be
+modified in the normal course of their use (programs whose purpose is
+to change the configuration of the system excluded).  Those probably
+belong in @file{$(localstatedir)}.
 
 @item sharedstatedir
 The directory for installing architecture-independent data files which
index 91e6abddc51aeb48fe9ba2e9b90559dc02978122..eadbacdcc8a11d4f345811f7692686761cb65780 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+##################################################################
+# The master copy of this file is in Automake's source repository.
+# Please send updates to automake-patches@gnu.org.
+##################################################################
+
 package Autom4te::ChannelDefs;
 
 =head1 NAME
@@ -69,7 +74,7 @@ our @EXPORT = qw (&prog_error &error &fatal &verb
 =head2 CHANNELS
 
 The following channels can be used as the first argument of
-C<Autom4te::Channel::msg>.  For some of them we list a shorthand
+C<Autom4te::Channels::msg>.  For some of them we list a shorthand
 function that makes the code more readable.
 
 =over 4
index 73bca6e3f599b1f3208a7f281bab2a1a86467d77..6d157458a494d6f646d861bcc85c92ba3d081f63 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-###############################################################
-# The main copy of this file is in Automake's git repository. #
-# Updates should be sent to automake-patches@gnu.org.         #
-###############################################################
+##################################################################
+# The master copy of this file is in Automake's source repository.
+# Please send updates to automake-patches@gnu.org.
+##################################################################
 
 package Autom4te::Channels;
 
index 3f4596d55fb7fac97ef1f74289199a55b2fbbe74..ffc4019304a0bbe6bf084d1548c9c3117c23444f 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-###############################################################
-# The main copy of this file is in Automake's git repository. #
-# Updates should be sent to automake-patches@gnu.org.         #
-###############################################################
+##################################################################
+# The master copy of this file is in Automake's source repository.
+# Please send updates to automake-patches@gnu.org.
+##################################################################
 
 package Autom4te::Configure_ac;
 
index c714d694a68f1e90a9704046615cf848cc11391f..e2d8c38baa58baec5bbd4825706c34b34b89a417 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-###############################################################
-# The main copy of this file is in Automake's git repository. #
-# Updates should be sent to automake-patches@gnu.org.         #
-###############################################################
+##################################################################
+# The master copy of this file is in Automake's source repository.
+# Please send updates to automake-patches@gnu.org.
+##################################################################
 
 package Autom4te::FileUtils;
 
index d39021bd95595ecb93d7899e513bd06c8b80de6c..3f53d34f8f11a078be6b46fd83fee3d9e140d15f 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+##################################################################
+# The master copy of this file is in Automake's source repository.
+# Please send updates to automake-patches@gnu.org.
+##################################################################
+
 package Autom4te::Getopt;
 
 =head1 NAME
index eeed12c18658459e3f21ffca4a26414b379d5b4d..a422cd6b6a5de7112d8ddca71e0be1403bc0b412 100644 (file)
 
 # Written by Akim Demaille <akim@freefriends.org>.
 
-###############################################################
-# The main copy of this file is in Automake's git repository. #
-# Updates should be sent to automake-patches@gnu.org.         #
-###############################################################
+##################################################################
+# The master copy of this file is in Automake's source repository.
+# Please send updates to automake-patches@gnu.org.
+##################################################################
 
 package Autom4te::XFile;
 
index 814bc192cc56c5cc9c44ea29f8c1276f7436980a..694d88abf2056520f28a24d8c5ff4e720152332d 100644 (file)
@@ -1,4 +1,5 @@
-# autobuild.m4 serial 8
+# autobuild.m4
+# serial 8
 dnl Copyright (C) 2004, 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 1b4a2de4f9bc8558a4097db6e26ef3ed93ecdd46..c30e71ba6ec7223d61de422fc3013a8acf3a9e52 100644 (file)
--- a/maint.mk
+++ b/maint.mk
@@ -503,6 +503,7 @@ sc_prohibit_have_config_h:
 # Nearly all .c files must include <config.h>.  However, we also permit this
 # via inclusion of a package-specific header, if cfg.mk specified one.
 # config_h_header must be suitable for grep -E.
+# Rationale: The Gnulib documentation, node 'Include <config.h>'.
 config_h_header ?= <config\.h>
 sc_require_config_h:
        @require='^# *include $(config_h_header)'                       \
@@ -526,6 +527,7 @@ perl_config_h_first_ =                                                      \
 
 # You must include <config.h> before including any other header file.
 # This can possibly be via a package-specific header, if given by cfg.mk.
+# Rationale: The Gnulib documentation, node 'Include <config.h>'.
 sc_require_config_h_first:
        @if $(VC_LIST_EXCEPT) | $(GREP) '\.c$$' > /dev/null; then       \
          files=$$($(VC_LIST_EXCEPT) | $(GREP) '\.c$$') &&              \
@@ -535,6 +537,89 @@ sc_require_config_h_first:
        else :;                                                         \
        fi
 
+# Generated headers that override system headers.
+# Keep sorted.
+gl_prefer_angle_bracket_headers_ ?= \
+  alloca.h             \
+  arpa/inet.h          \
+  assert.h             \
+  ctype.h              \
+  dirent.h             \
+  errno.h              \
+  error.h              \
+  fcntl.h              \
+  fenv.h               \
+  float.h              \
+  fnmatch.h            \
+  getopt.h             \
+  glob.h               \
+  iconv.h              \
+  inttypes.h           \
+  langinfo.h           \
+  limits.h             \
+  locale.h             \
+  malloc.h             \
+  math.h               \
+  monetary.h           \
+  netdb.h              \
+  net/if.h             \
+  netinet/in.h         \
+  omp.h                        \
+  poll.h               \
+  pthread.h            \
+  pty.h                        \
+  sched.h              \
+  search.h             \
+  selinux/selinux.h    \
+  signal.h             \
+  spawn.h              \
+  stdalign.h           \
+  stdarg.h             \
+  stddef.h             \
+  stdint.h             \
+  stdio.h              \
+  stdlib.h             \
+  string.h             \
+  strings.h            \
+  sysexits.h           \
+  sys/file.h           \
+  sys/ioctl.h          \
+  sys/msg.h            \
+  sys/random.h         \
+  sys/resource.h       \
+  sys/select.h         \
+  sys/sem.h            \
+  sys/shm.h            \
+  sys/socket.h         \
+  sys/stat.h           \
+  sys/time.h           \
+  sys/times.h          \
+  sys/types.h          \
+  sys/uio.h            \
+  sys/utsname.h                \
+  sys/wait.h           \
+  termios.h            \
+  threads.h            \
+  time.h               \
+  uchar.h              \
+  unistd.h             \
+  utime.h              \
+  utmp.h               \
+  wchar.h              \
+  wctype.h
+
+# Remove each .h suffix and change each space to "|".
+angle_bracket_header_re = \
+  $(subst $(_sp),|,$(patsubst %.h,%,$(gl_prefer_angle_bracket_headers_)))
+
+# Suggest using '#include <header.h>' instead of '#include "header.h"' for
+# headers that override system headers.
+# Rationale: The Gnulib documentation, node 'Style of #include statements'.
+sc_prefer_angle_bracket_headers:
+       @prohibit='^ *# *include "($(angle_bracket_header_re))\.h"'     \
+       halt='Use #include <hdr.h>, not #include "hdr.h" for the above' \
+         $(_sc_search_regexp)
+
 sc_prohibit_HAVE_MBRTOWC:
        @prohibit='\bHAVE_MBRTOWC\b'                                    \
        halt="do not use $$prohibit; it is always defined"              \
@@ -914,6 +999,7 @@ sc_prohibit_always-defined_macros:
                 exit 1; }                                              \
            || :;                                                       \
        fi
+
 # ==================================================================
 
 # Prohibit checked in backup files.