/[gentoo-projects]/portage-utils/autogen.sh
Gentoo

Contents of /portage-utils/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download) (as text)
Mon Dec 12 20:21:06 2011 UTC (2 years, 11 months ago) by grobian
Branch: MAIN
Changes since 1.4: +2 -0 lines
File MIME type: text/x-sh
use gnulib (again), include more modules

1 #!/bin/bash -e
2
3 v() { echo "$@"; "$@"; }
4
5 m4dir="autotools/m4"
6
7 v rm -rf autotools
8 if [[ $1 != "--from=make" ]] ; then
9 v ${MAKE:-make} autotools-update
10 fi
11
12 # reload the gnulib code if possible
13 PATH=/usr/local/src/gnu/gnulib:${PATH}
14 mods="
15 faccessat
16 fdopendir
17 fstatat
18 futimens
19 getline
20 mkdirat
21 openat
22 progname
23 readlinkat
24 renameat
25 stat-time
26 strncat
27 symlinkat
28 sys_stat
29 unlinkat
30 utimensat
31 "
32 v gnulib-tool \
33 --source-base=autotools/gnulib --m4-base=autotools/m4 \
34 --import \
35 ${mods}
36
37 # not everyone has sys-devel/autoconf-archive installed
38 for macro in $(grep -o '\<AX[A-Z_]*\>' configure.ac | sort -u) ; do
39 if m4=$(grep -rl "\[${macro}\]" /usr/share/aclocal/) ; then
40 v cp $m4 ${m4dir}/
41 fi
42 done
43
44 export AUTOMAKE="automake --foreign"
45 v autoreconf -i -f
46
47 if [[ -x ./test.sh ]] ; then
48 exec ./test.sh "$@"
49 fi

  ViewVC Help
Powered by ViewVC 1.1.20