forked from ganglia/monitor-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·33 lines (30 loc) · 891 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
#!/bin/sh
# $Id$
echo "Bootstrapping libmetrics"
cd libmetrics && ./bootstrap || exit 1
cd ..
MINOR=`grep 'GANGLIA_MINOR_VERSION=' configure.in | cut -d "=" -f 2`
if [ $MINOR -eq 1 ]; then
#XXX: only for 3.1
SVNVERSION=`svnversion . | cut -d ":" -f 1 | sed -e "s/[A-Z]//g"`
if [ "$SVNVERSION" = "exported" ]; then
SVNVERSION=0
fi
perl -pi -e "s/GANGLIA_NANO_VERSION=\d+/GANGLIA_NANO_VERSION=$SVNVERSION/g" configure.in
fi
echo "Create distribution timestamp"
touch Makefile.am
echo "Running aclocal" &&
aclocal &&
echo "Running autoheader" &&
autoheader &&
echo "Creating build" &&
mkdir -p build &&
echo "Running automake" &&
automake --add-missing --copy 2>/dev/null
echo "Running libtoolize" &&
libtoolize --automake --copy && automake --add-missing --copy &&
echo "Running autoconf" &&
autoconf -f || exit 1
echo &&
echo "To begin installation, run \"./configure\" now"