gnulib: use manywarnings module.
[m4/ericb.git] / bootstrap.conf
blobe09b22df0ab691b6d21729c0229ec1800584f17e
1 # bootstrap.conf (GNU M4) version 2010-09-10
2 # Written by Gary V. Vaughan, 2010
4 # Copyright (C) 2010, 2013 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 # Additional gnulib-tool options to use.
43 gnulib_tool_options=$gnulib_tool_options'
44         --libtool
47 # gnulib_modules must remain empty in order to get --update style
48 # gnulib-tool invocations, so we add the bootstrap components here.
49 gnulib_non_module_files=$gnulib_non_module_files"
50         build-aux/bootstrap.in
51         build-aux/extract-trace
52         build-aux/funclib.sh
53         build-aux/inline-source
54         build-aux/options-parser"
56 # List dependencies here too; we don't extract them, otherwise dependent
57 # modules could end up being imported to src/ *and* gnu/!
58 src_modules='
59 getopt-gnu
60 getopt-posix
61 version-etc-fsf
62 version-etc
63 xstrtol
66 # What ignore files to maintain.
67 vc_ignore=".cvsignore .gitignore"
70 ## --------------- ##
71 ## Hook functions. ##
72 ## --------------- ##
75 # m4_install_texinfo_diff_driver
76 # ------------------------------
77 # Help git to do a better job of merging texinfo files.
78 m4_install_texinfo_diff_driver ()
80     $debug_cmd
82     $require_git
84     test true = "$GIT" || {
85       if $GIT config diff.texinfo.funcname >/dev/null ; then
86         :
87       else
88         func_echo "initializing git texinfo diff driver"
89         git config diff.texinfo.funcname '^@node[ \t][ \t]*\\([^,][^,]*\\)'
90       fi
91     }
93 func_add_hook func_prep m4_install_texinfo_diff_driver
96 # m4_copy_src_modules
97 # -------------------
98 # Copy $src_modules from gnulib to src directory.
99 m4_copy_src_modules ()
101     $debug_cmd
103     $require_gnulib_tool
105     test true = "$gnulib_tool" || {
106       $require_macro_dir
108       for file in `$gnulib_tool --extract-filelist $src_modules | sort -u`
109       do
110         maybe_exit_cmd=:
112         func_basename $file
113         dest=$func_basename_result
115         case $file in
116           lib/*) dest=src/$dest ;;
117           m4/*)  dest=$macro_dir/$dest ;;
118           *)     func_error "$file: unknown file"
119                  maybe_exit_cmd="exit $EXIT_FAILURE"
120                  dest= ;;
121         esac
123         # Be sure to show all copying errors before bailing out
124         if test -n "$dest"; then
125           func_gnulib_tool_copy_file "$file" "$dest"
126         fi
127       done
129       $maybe_exit_cmd
130     }
132 func_add_hook func_gnulib_tool m4_copy_src_modules
135 # Local variables:
136 # mode: shell-script
137 # sh-indentation: 2
138 # eval: (add-hook 'write-file-hooks 'time-stamp)
139 # time-stamp-start: "# bootstrap.conf (GNU M4) version "
140 # time-stamp-format: "%:y-%02m-%02d"
141 # time-stamp-end: "$"
142 # End: