blob: 903a00c40989ac28ef6af593d4fdce4e999e42d0 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/bin/bash -e
v() { echo "$@"; "$@"; }
m4dir="autotools/m4"
v rm -rf autotools
if [[ $1 != "--from=make" ]] ; then
v ${MAKE:-make} autotools-update
fi
# reload the gnulib code if possible
PATH=/usr/local/src/gnu/gnulib:${PATH}
mods="
faccessat
fdopendir
fstatat
futimens
getline
mkdirat
openat
progname
readlinkat
renameat
stat-time
strncat
symlinkat
sys_stat
unlinkat
utimensat
"
v gnulib-tool \
--source-base=autotools/gnulib --m4-base=autotools/m4 \
--import \
${mods}
# not everyone has sys-devel/autoconf-archive installed
for macro in $(grep -o '\<AX[A-Z_]*\>' configure.ac | sort -u) ; do
if m4=$(grep -rl "\[${macro}\]" /usr/share/aclocal/) ; then
v cp $m4 ${m4dir}/
fi
done
export AUTOMAKE="automake --foreign"
v autoreconf -i -f
if [[ -x ./test.sh ]] ; then
exec ./test.sh "$@"
fi
|