-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap
76 lines (61 loc) · 2.08 KB
/
bootstrap
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# $Id: bootstrap 2465 2009-01-26 09:58:02Z sloot $
# $URL: $
# bootstrap - script to bootstrap the distribution rolling engine
# usage:
# $ sh ./bootstrap && ./configure && make dist[check]
#
# this yields a tarball which one can install doing
#
# $ tar zxf PACKAGENAME-*.tar.gz
# $ cd PACKAGENAME-*
# $ ./configure
# $ make
# # make install
# requirements:
# GNU autoconf, from e.g. ftp.gnu.org:/pub/gnu/autoconf/
# GNU automake, from e.g. http://ftp.gnu.org/gnu/automake/
automake=automake
aclocal=aclocal
# if you want to autogenerate a ChangeLog form svn:
#
# svn2cl, a python script, as used in the GNU Enterprise project.
# By jcater (Jason Cater), contributions by reinhard (Reinhard Müller).
# Get it from
# http://www.gnuenterprise.org/cgi-bin/viewcvs.cgi/*checkout*/gnue/trunk/gnue-common/utils/svn2cl .
# svn2cl is used in Makefile.am too.
#
# (Another svn2cl implementation, in perl, is at
# http://www.contactor.se/~dast/svn/archive-2002-04/0910.shtml)
#
# see also toplevel Makefile.am
# test -f ChangeLog || {
# svn log --verbose > ChangeLog
#}
$aclocal -I m4
if $automake --version|head -1 |grep '1\.[4-7]'; then
echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
if test -f /etc/debian_version; then
echo " sudo apt-get install automake1.9"
echo " sudo update-alternatives --config automake"
fi
exit 1
fi
if $aclocal --version|head -1 |grep '1\.[4-7]'; then
echo "aclocal 1.4-1.7 is active. You should use aclocal 1.8 or later"
if test -f /etc/debian_version; then
echo " sudo apt-get install aclocal1.9"
echo " sudo update-alternatives --config aclocal"
fi
exit 1
fi
# Debian automake package installs as automake-version. Use this
# to make sure the right automake is being used.
# if not installed, use: apt-get install automake1.9
AUTOMAKE=automake ACLOCAL=aclocal autoreconf --install \
--symlink
# add --make if you want to run "make" too.
# autoreconf should run something like:
#
# aclocal-1.9 \
# && automake-1.9 --add-missing --verbose --gnu \
# && autoconf