summaryrefslogtreecommitdiff
blob: 5424085a0fd9a0b8cefb3103250c1171518bc758 (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
#!/bin/bash
# Copyright 1999-2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Run eltpatch against copies of libtool for quick testing.

set -e
cd "$(dirname "$(realpath "$0")")"

export LD=ld
export CHOST=x86_64-gentoo-linux-gnu
export ELT_patchdir="${PWD}/../patches"
eltpatch=${PWD}/../eltpatch

test() {
	local PV="$1"

	rm -rf "${PV}.tmp"
	cp -a "${PV}" "${PV}.tmp"
	export S="${PWD}/${PV}.tmp"
	export TMPDIR=${S}
	"${eltpatch}"
}

mkdir -p libtools
for f in *.*/configure.ac ; do
	v=${f%/*}
	[[ ${v} == *.tmp ]] && continue
	echo "### ${v}"
	test "${v}"
done