Revision 20388,
1.2 KB
checked in by amb, 21 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r20387,
which included commits to RCS files with non-trunk default branches.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # $Id: bootstrap.sh,v 1.1.1.1 2004-04-09 20:08:58 amb Exp $ |
---|
3 | |
---|
4 | # This file is part of ifplugd. |
---|
5 | # |
---|
6 | # ifplugd 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 | # ifplugd 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 ifplugd; if not, write to the Free Software Foundation, |
---|
18 | # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
---|
19 | |
---|
20 | run_versioned() { |
---|
21 | local P |
---|
22 | type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1" |
---|
23 | |
---|
24 | shift 2 |
---|
25 | "$P" "$@" |
---|
26 | } |
---|
27 | |
---|
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 |
---|
36 | |
---|
37 | run_versioned aclocal 1.7 |
---|
38 | autoheader |
---|
39 | run_versioned automake 1.7 -a -c |
---|
40 | autoconf -Wall |
---|
41 | |
---|
42 | ./configure --sysconfdir=/etc "$@" |
---|
43 | |
---|
44 | make clean |
---|
45 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.