1 | #!/bin/sh |
---|
2 | |
---|
3 | # $Id: bootstrap 3172 2014-03-04 02:38:11Z 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, 2014 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 | func_help () |
---|
30 | { |
---|
31 | cat <<EOF |
---|
32 | Usage: $me [OPTION]... |
---|
33 | |
---|
34 | Available Options: |
---|
35 | -h, --help display this help and exit |
---|
36 | -i, --install update M4 macro files in m4/ |
---|
37 | -v, --verbose verbosely report processing |
---|
38 | EOF |
---|
39 | } |
---|
40 | |
---|
41 | me=bootstrap |
---|
42 | verbose=no |
---|
43 | install=no |
---|
44 | # parse options |
---|
45 | while test $# -gt 0; do |
---|
46 | case "$1" in |
---|
47 | --help | -h) func_help; exit 0;; |
---|
48 | --install | -i) install=yes;; |
---|
49 | --verbose | -v) verbose=yes;; |
---|
50 | *) echo "$me: invalid option '$1'" >& 2 && exit 1;; |
---|
51 | esac |
---|
52 | shift; |
---|
53 | done |
---|
54 | |
---|
55 | : ${ACLOCAL="aclocal"} |
---|
56 | export ACLOCAL |
---|
57 | |
---|
58 | cmd="autoreconf --install --symlink --force"; |
---|
59 | if test "x$verbose" = "xno"; then |
---|
60 | exec > /dev/null |
---|
61 | else |
---|
62 | cmd="$cmd --verbose" |
---|
63 | fi |
---|
64 | test x"$install" = x"yes" && ACLOCAL="$ACLOCAL --install" |
---|
65 | |
---|
66 | echo "$me: running: $cmd"; |
---|
67 | exec $cmd; |
---|