about summary refs log tree commit diff
path: root/test/build/subversion-build.sh
blob: 3d1922c98ad5cf1bb6191a9530968582ee2ed777 (plain) (blame)
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
#! /bin/sh

export PATH=/bin:/usr/bin

export LDFLAGS=-s

top=`pwd`

if test $httpsClient; then
    extraflags="--with-ssl --with-libs=$ssl $extraflags"
fi

if test $httpServer; then
    extraflags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $extraflags"
    extrainst="APACHE_LIBEXECDIR=$top/modules $extrainst"
fi

echo "extra flags: $extraflags"

tar xvfz $src || exit 1
cd subversion-* || exit 1
./configure --prefix=$top $extraflags || exit 1
make || exit 1
make install $extrainst || exit 1
cd $top || exit 1
rm -rf subversion-* || exit 1