]> www.ginac.de Git - cln.git/blob - autogen.sh
Finalize CLN 1.3.7 release.
[cln.git] / autogen.sh
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.
6 #
7 # This script requires autoconf-2.63..2.69 and automake-1.11..1.16 in the PATH.
8
9 # Copyright (C) 2003-2019 Free Software Foundation, Inc.
10 #
11 # This program is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 3 of the License, or
14 # (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
23
24 # Usage: ./autogen.sh
25
26 TEXINFO_VERSION=7.0.1
27
28 mkdir -p build-aux m4
29
30 # libtool
31 # Don't use libtoolize, as it may not be installed or may be outdated.
32 for f in build-aux/ltmain.sh m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4; do
33   { wget -nv --timeout=5 -O $f.tmp "https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob_plain;f=${f}" \
34       && mv $f.tmp $f; \
35   } || rm -f $f.tmp
36 done
37
38 # config.{guess,sub}, gnulib module 'havelib', test-driver.diff
39 for f in build-aux/config.guess build-aux/config.sub \
40          m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 m4/host-cpu-c-abi.m4 build-aux/config.rpath \
41          build-aux/test-driver.diff; do
42   { wget -nv --timeout=5 -O $f.tmp "https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=${f}" \
43       && mv $f.tmp $f; \
44   } || rm -f $f.tmp
45 done
46
47 # autoconf archive
48 for f in m4/ax_cxx_compile_stdcxx.m4; do
49   { wget -nv --timeout=5 -O $f.tmp "https://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=${f}" \
50       && mv $f.tmp $f; \
51   } || rm -f $f.tmp
52 done
53
54 # texinfo.tex
55 # The most recent snapshot of it is available in the gnulib repository.
56 # But this is a snapshot, with all possible dangers.
57 # A stable release of it is available through "automake --add-missing --copy",
58 # but that may be too old. So take the version which matches the latest stable
59 # texinfo release.
60 for f in texinfo.tex; do
61   g="build-aux/$f"
62   { wget -nv --timeout=5 -O $g.tmp "https://git.savannah.gnu.org/gitweb/?p=texinfo.git;a=blob_plain;f=doc/${f};hb=refs/tags/texinfo-${TEXINFO_VERSION}" \
63       && mv $g.tmp $g; \
64   } || rm -f $g.tmp
65 done
66
67 aclocal -I m4
68 autoconf
69 autoheader && touch autoconf/cl_config.h.in
70 # Make sure we get new versions of files brought in by automake.
71 (cd build-aux && rm -f ar-lib compile depcomp install-sh mdate-sh missing test-driver)
72 automake --add-missing --copy
73 patch build-aux/test-driver < build-aux/test-driver.diff
74 # Get rid of autom4te.cache directory.
75 rm -rf autom4te.cache