comparison bootstrap.sh @ 209:174130d3ddd0

Improved bootstrap script, though now using shell functions. Might only work in bash, YMMV. Will fix later if so.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 15 Dec 2004 10:25:05 +0000
parents a57fb0799259
children 7bb9e20e3092
comparison
equal deleted inserted replaced
208:8ebef120d67f 209:174130d3ddd0
1 #! /bin/sh 1 #! /bin/sh
2 WANT_AM_VERSION=1.7
2 3
3 echo "**" 4 echo "**"
4 echo "** Now bootstrapping the package." 5 echo "** Now bootstrapping the package."
5 echo "** This may take a while, please be patient ..." 6 echo "** This may take a while, please be patient ..."
6 echo "**" 7 echo "**"
7 echo "- aclocal - 0%"
8 aclocal
9 8
10 echo "- autoconf - 20%" 9 ftest_am_package()
11 autoconf 10 {
11 if test -x `which "$1-$WANT_AM_VERSION"`; then
12 echo "** $1-$WANT_AM_VERSION $2"
13 eval `$1-$WANT_AM_VERSION $2`
14 else
15 if test -x `which $1`; then
16 echo "** $1 $2"
17 eval `$1 $2`
18 else
19 echo "You do not have required GNU Autotools installed, please install"
20 echo "recent version of GNU autoconf, automake and libtool packages."
21 echo "(Could not find runnable '$1-$WANT_AM_VERSION' or '$1')"
22 exit 1
23 fi
24 fi
25 }
12 26
13 echo "- autoheader - 40%" 27 ftest_ac_package()
14 autoheader 28 {
29 if test -x `which $1`; then
30 echo "** $1 $2"
31 eval `$1 $2`
32 else
33 echo "You do not have required GNU Autotools installed, please install"
34 echo "recent version of GNU autoconf, automake and libtool packages."
35 echo "(Could not find runnable '$1')"
36 exit 1
37 fi
38 }
15 39
16 echo "- automake - 60%" 40 ftest_package()
17 automake -a -c 41 {
42 if test -x `which $1`; then
43 echo "** $1 $2"
44 eval `$1 $2`
45 else
46 echo "Could not find runnable '$1'."
47 exit 1
48 fi
49 }
18 50
19 echo "- libtoolize - 80%" 51 ftest_am_package "aclocal" "-I ."
20 libtoolize --automake --force 52 ftest_am_package "automake" "-a -c --foreign"
53 ftest_ac_package "autoheader" ""
54 ftest_ac_package "autoconf" ""
55 ftest_ac_package "libtoolize" "--automake --force"
56 ftest_package "glade" "-w xmms-sid.glade"
21 57
22 echo "- glade - 100%"
23 glade -w xmms-sid.glade