Mercurial > hg > xmms-sid
annotate bootstrap.sh @ 239:7833df935239
Added xs_pnstrcat() to ease forming of limited size strings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Dec 2004 15:03:05 +0000 |
parents | 5a390af358fc |
children | 75e3fb8d706d |
rev | line source |
---|---|
15
17947c69fcc9
Added script for bootstrapping from CVS
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 #! /bin/sh |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
2 WANT_AM_VERSION=1.7 |
15
17947c69fcc9
Added script for bootstrapping from CVS
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 |
229 | 4 echo "***" |
5 echo "*** Now bootstrapping the package." | |
6 echo "*** This may take a while, please be patient ..." | |
7 echo "***" | |
8 ftest_msg() | |
9 { | |
10 echo "You do not have required GNU Autotools installed, please install" | |
11 echo "recent version of GNU autoconf, automake and libtool packages." | |
12 echo "(Could not find runnable $1)" | |
13 } | |
35 | 14 |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
15 ftest_am_package() |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
16 { |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
17 if test -x `which "$1-$WANT_AM_VERSION"`; then |
229 | 18 echo "* $1-$WANT_AM_VERSION $2" |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
19 eval `$1-$WANT_AM_VERSION $2` |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
20 else |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
21 if test -x `which $1`; then |
229 | 22 echo "* Warning! Could not find $1-$WANT_AM_VERSION!" |
23 echo " Trying '$1', which may fail due to incompabilities." | |
24 echo "* $1 $2" | |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
25 eval `$1 $2` |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
26 else |
229 | 27 ftest_msg "'$1-$WANT_AM_VERSION' or '$1'" |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
28 exit 1 |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
29 fi |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
30 fi |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
31 } |
35 | 32 |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
33 ftest_ac_package() |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
34 { |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
35 if test -x `which $1`; then |
229 | 36 echo "* $1 $2" |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
37 eval `$1 $2` |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
38 else |
229 | 39 ftest_msg "'$1'" |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
40 exit 1 |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
41 fi |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
42 } |
35 | 43 |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
44 ftest_package() |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
45 { |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
46 if test -x `which $1`; then |
229 | 47 echo "* $1 $2" |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
48 eval `$1 $2` |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
49 else |
229 | 50 echo "Could not find runnable '$1', perhaps $3 package is not installed" |
51 echo "or it is not in the PATH. Please install $4." | |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
52 exit 1 |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
53 fi |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
54 } |
35 | 55 |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
56 ftest_am_package "aclocal" "-I ." |
238
5a390af358fc
Run libtoolize before automake/conf
Matti Hamalainen <ccr@tnsp.org>
parents:
229
diff
changeset
|
57 ftest_ac_package "libtoolize" "--automake --force" |
209
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
58 ftest_am_package "automake" "-a -c --foreign" |
174130d3ddd0
Improved bootstrap script, though now using shell functions. Might only
Matti Hamalainen <ccr@tnsp.org>
parents:
156
diff
changeset
|
59 ftest_ac_package "autoconf" "" |
229 | 60 ftest_package "glade" "-w xmms-sid.glade" "Glade" "Glade for Gtk+1 applications (Glade v0.6.4)" |