1 | #!/bin/sh |
---|
2 | |
---|
3 | # $Id: bootstrap 2470 2011-04-12 03:21:45Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2003 Jari Häkkinen |
---|
6 | # Copyright (C) 2005 Peter Johansson |
---|
7 | # Copyright (C) 2006 Jari Häkkinen |
---|
8 | # Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson |
---|
9 | # Copyright (C) 2009, 2011 Peter Johansson |
---|
10 | # |
---|
11 | # This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
12 | # |
---|
13 | # The yat library is free software; you can redistribute it and/or |
---|
14 | # modify it under the terms of the GNU General Public License as |
---|
15 | # published by the Free Software Foundation; either version 3 of the |
---|
16 | # License, or (at your option) any later version. |
---|
17 | # |
---|
18 | # The yat library is distributed in the hope that it will be useful, |
---|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
21 | # General Public License for more details. |
---|
22 | # |
---|
23 | # You should have received a copy of the GNU General Public License |
---|
24 | # along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
25 | |
---|
26 | # Run this to generate all auto-generated files needed by the GNU |
---|
27 | # configure program. |
---|
28 | |
---|
29 | me=bootstrap |
---|
30 | verbose=no |
---|
31 | # parse options |
---|
32 | while test $# -gt 0; do |
---|
33 | case "$1" in |
---|
34 | --verbose | -v) verbose=yes;; |
---|
35 | *) echo "$me: invalid option '$1'" >& 2 && exit 1;; |
---|
36 | esac |
---|
37 | shift; |
---|
38 | done |
---|
39 | cmd="autoreconf --install --symlink --force"; |
---|
40 | if test "x$verbose" = "xno"; then |
---|
41 | exec > /dev/null |
---|
42 | else |
---|
43 | cmd="$cmd --verbose" |
---|
44 | fi |
---|
45 | echo "$me: running: $cmd"; |
---|
46 | exec $cmd; |
---|