gnulib-tool.py: Reduce code duplication in file name transformations.
[gnulib.git] / top / autogen.sh
bloba0b4936f980b443000105f5b7788a4fcf3e89bca
1 #!/bin/sh
2 # Convenience script for regenerating all autogeneratable files that are
3 # omitted from the version control repository. In particular, this script
4 # also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files
5 # with new versions of autoconf or automake.
7 # Copyright (C) 2003-2024 Free Software Foundation, Inc.
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <https://www.gnu.org/licenses/>.
22 # Originally written by Paul Eggert. The canonical version of this
23 # script is maintained as top/autogen.sh in gnulib. However, to be
24 # useful to your package, you should place a copy of it under version
25 # control in the top-level directory of your package. The intent is
26 # that all customization can be done with a bootstrap.conf file also
27 # maintained in your version control; gnulib comes with a template
28 # build-aux/bootstrap.conf to get you started.
30 # Alternatively, you can use an autogen.sh script that is specific
31 # to your package.
33 me="$0"
34 medir=`dirname "$me"`
36 # Read the function library and the configuration.
37 . "$medir"/bootstrap-funclib.sh
39 autogen "$@"