forked from ganglia/monitor-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·36 lines (32 loc) · 1007 Bytes
/
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
#!/bin/sh
# This can be changed whenever it is decided to use a new
# autotools
#
# Official release tarballs should only be prepared using the
# autotools version agreed on the Ganglia mailing list
#
SUPPORTED="Debian 6.0 (squeeze) amd64"
echo "Bootstrapping libmetrics"
echo "WARNING:"
echo "WARNING: you should only do this on $SUPPORTED"
echo "WARNING: as any other versions of autotools may produce"
echo "WARNING: errors or silently do something unexpected"
echo "WARNING:"
cd libmetrics && ./bootstrap || exit 1
cd ..
echo "Create distribution timestamp"
touch Makefile.am
echo "Running aclocal" &&
aclocal -I m4 &&
echo "Running autoheader" &&
autoheader &&
echo "Creating build" &&
mkdir -p build &&
echo "Running automake" &&
automake --add-missing --copy --foreign 2>/dev/null
echo "Running libtoolize" &&
libtoolize --automake --copy && automake --add-missing --copy --foreign &&
echo "Running autoconf" &&
autoconf -f || exit 1
echo &&
echo "To begin installation, run \"./configure\" now"