summaryrefslogtreecommitdiff
path: root/bootstrap
blob: 98a0e79141a472ec4141f66de6b23f43292064e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# Bootstrap a project from pristine sources.

# It has become fashionable to include a "bootstrap" script.
# This one simply documents that autoreconf does it all.

# Copyright 2011, 2012, 2021, 2025 Bob Proulx <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

# Since this bootstrap is a maintainer tool we assume that the user
# running this script has the maintainer tools available.  Force
# removal of generated files and then bring everything up to date.

# Remove generated files to force a complete rebuild.
rm -f aclocal.m4 config.log config.status config.h stamp-h*
rm -f Makefile Makefile.in configure
rm -f src/Makefile src/Makefile.in

# Bring the build framework up to date.
exec autoreconf --install "$@"