maint: release no longer creates a diff file
[m4/ericb.git] / bootstrap.conf
blobb2326348b5cca49fde59fa784ce09f34c6297ce6
1 # bootstrap.conf (GNU M4) version 2017-01-03
2 # Written by Gary V. Vaughan, 2010
4 # Copyright (C) 2010, 2013-2014, 2017 Free Software Foundation, Inc.
6 # This file is part of GNU M4.
8 # GNU M4 is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU M4 is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 ## -------------- ##
23 ## Configuration. ##
24 ## -------------- ##
26 copyright_holder="Free Software Foundation, Inc."
28 # List of programs (and minimum versions) required to bootstrap, maintain
29 # and release Libtool.
30 buildreq='
31         help2man   1.29        http://www.gnu.org/s/help2man
32         makeinfo   4.13        http://www.gnu.org/s/texinfo
33         xz         -           http://tukaani.org/xz
36 # Instructions on how to install packages in $buildreq.
37 buildreq_readme=HACKING
39 # A file only visible in a vcs working directory.
40 checkout_only_file=HACKING
42 # Local gnulib submodule path.
43 gnulib_path=build-aux/gnulib
45 # Additional gnulib-tool options to use.
46 gnulib_tool_options=$gnulib_tool_options'
47         --libtool
50 # gnulib_modules must remain empty in order to get --update style
51 # gnulib-tool invocations, so we add the bootstrap components here.
52 gnulib_non_module_files=$gnulib_non_module_files"
53         build-aux/bootstrap.in
54         build-aux/extract-trace
55         build-aux/funclib.sh
56         build-aux/inline-source
57         build-aux/options-parser"
59 # List dependencies here too; we don't extract them, otherwise dependent
60 # modules could end up being imported to src/ *and* gnu/!
61 src_modules='
62 assure
63 getopt-gnu
64 getopt-posix
65 version-etc-fsf
66 version-etc
67 xstrtol
70 # What ignore files to maintain.
71 vc_ignore=".gitignore"
74 ## --------------- ##
75 ## Hook functions. ##
76 ## --------------- ##
79 # m4_precopy_git_version_gen
80 # --------------------------
81 # Autopoint gets confused if git-version-gen is missing.
82 m4_precopy_git_version_gen ()
84     $debug_cmd
86     $require_build_aux
88     func_gnulib_tool_copy_file build-aux/git-version-gen $build_aux/git-version-gen
90 func_add_hook func_prep m4_precopy_git_version_gen
93 # m4_install_texinfo_diff_driver
94 # ------------------------------
95 # Help git to do a better job of merging texinfo files.
96 m4_install_texinfo_diff_driver ()
98     $debug_cmd
100     $require_git
102     test true = "$GIT" || {
103       if $GIT config diff.texinfo.funcname >/dev/null ; then
104         :
105       else
106         func_echo "initializing git texinfo diff driver"
107         git config diff.texinfo.funcname '^@node[ \t][ \t]*\\([^,][^,]*\\)'
108       fi
109     }
111 func_add_hook func_prep m4_install_texinfo_diff_driver
114 # m4_copy_src_modules
115 # -------------------
116 # Copy $src_modules from gnulib to src directory.
117 m4_copy_src_modules ()
119     $debug_cmd
121     $require_gnulib_tool
123     test true = "$gnulib_tool" || {
124       $require_macro_dir
126       for file in `$gnulib_tool --extract-filelist $src_modules | sort -u`
127       do
128         maybe_exit_cmd=:
130         func_basename $file
131         dest=$func_basename_result
133         case $file in
134           lib/*) dest=src/$dest ;;
135           m4/*)  dest=$macro_dir/$dest ;;
136           *)     func_error "$file: unknown file"
137                  maybe_exit_cmd="exit $EXIT_FAILURE"
138                  dest= ;;
139         esac
141         # Be sure to show all copying errors before bailing out
142         if test -n "$dest"; then
143           func_gnulib_tool_copy_file "$file" "$dest"
144         fi
145       done
147       $maybe_exit_cmd
148     }
150 func_add_hook func_gnulib_tool m4_copy_src_modules
153 # Local variables:
154 # mode: shell-script
155 # sh-indentation: 2
156 # eval: (add-hook 'write-file-hooks 'time-stamp)
157 # time-stamp-start: "# bootstrap.conf (GNU M4) version "
158 # time-stamp-format: "%:y-%02m-%02d"
159 # time-stamp-end: "$"
160 # End: