Code

adjust svn
[fusedav.git] / bootstrap.sh
1 #!/bin/bash
2 # $Id$
4 # This file is part of fusedav.
5 #
6 # fusedav is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # fusedav is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with fusedav; if not, write to the Free Software Foundation,
18 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20 run_versioned() {
21     local P
22     type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
24     shift 2
25     "$P" "$@"
26 }
28 if [ "x$1" = "xam" ] ; then
29     set -ex
30     run_versioned automake 1.7 -a -c
31     ./config.status
32 else 
33     set -ex
34     rm -rf autom4te.cache
35     rm -f config.cache
37     run_versioned aclocal 1.7
38     autoheader
39     run_versioned automake 1.7 -a -c
40     autoconf -Wall
42     ./configure --sysconfdir=/etc "$@"
44     make clean
45 fi