summaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: f33495972867a5fdf1eaec114c4615143672239f (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
33
34
35
36
#!/bin/sh
#
# Script to generate the build system.
#
# Copyright (C) 2013, 2019  Patrick McDermott
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.

set -e

srcdir="${0%/*}"

{(
	cd "${srcdir}"
	[ -d build-aux ] || mkdir build-aux
	cat >ChangeLog <<-EOF
This file is generated upon release.  Run \`git log\` for a list of changes.
EOF
	# Force gettextize to be non-interactive.  Stupid but necessary.
	LC_ALL=C expect -f - <<-EOF
		spawn gettextize --force --no-changelog
		expect "Press Return to acknowledge the previous * paragraphs."
		send "\n"
		EOF
	# This file contains a huge outdated matrix of unrelated packages.
	>ABOUT-NLS
	aclocal
	autoconf
	autoheader
	automake --add-missing --copy
)}

"${srcdir}/configure" "${@}"