9 |
03 Mar 03 |
jari |
#!/bin/sh |
9 |
03 Mar 03 |
jari |
2 |
|
9 |
03 Mar 03 |
jari |
# $Id$ |
9 |
03 Mar 03 |
jari |
4 |
|
2121 |
13 Dec 09 |
peter |
# Copyright (C) 2003 Jari Häkkinen |
831 |
27 Mar 07 |
peter |
# Copyright (C) 2005 Peter Johansson |
2121 |
13 Dec 09 |
peter |
# Copyright (C) 2006 Jari Häkkinen |
4359 |
23 Aug 23 |
peter |
# Copyright (C) 2007 Peter Johansson |
4359 |
23 Aug 23 |
peter |
# Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
3172 |
04 Mar 14 |
peter |
# Copyright (C) 2009, 2011, 2014 Peter Johansson |
675 |
10 Oct 06 |
jari |
11 |
# |
1437 |
25 Aug 08 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
675 |
10 Oct 06 |
jari |
13 |
# |
675 |
10 Oct 06 |
jari |
# The yat library is free software; you can redistribute it and/or |
675 |
10 Oct 06 |
jari |
# modify it under the terms of the GNU General Public License as |
1486 |
09 Sep 08 |
jari |
# published by the Free Software Foundation; either version 3 of the |
675 |
10 Oct 06 |
jari |
# License, or (at your option) any later version. |
675 |
10 Oct 06 |
jari |
18 |
# |
675 |
10 Oct 06 |
jari |
# The yat library is distributed in the hope that it will be useful, |
675 |
10 Oct 06 |
jari |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
675 |
10 Oct 06 |
jari |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
675 |
10 Oct 06 |
jari |
# General Public License for more details. |
675 |
10 Oct 06 |
jari |
23 |
# |
675 |
10 Oct 06 |
jari |
# You should have received a copy of the GNU General Public License |
1487 |
10 Sep 08 |
jari |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
675 |
10 Oct 06 |
jari |
26 |
|
9 |
03 Mar 03 |
jari |
# Run this to generate all auto-generated files needed by the GNU |
3172 |
04 Mar 14 |
peter |
# configure program. |
9 |
03 Mar 03 |
jari |
29 |
|
3172 |
04 Mar 14 |
peter |
30 |
func_help () |
3172 |
04 Mar 14 |
peter |
31 |
{ |
3172 |
04 Mar 14 |
peter |
32 |
cat <<EOF |
3172 |
04 Mar 14 |
peter |
33 |
Usage: $me [OPTION]... |
3172 |
04 Mar 14 |
peter |
34 |
|
3172 |
04 Mar 14 |
peter |
35 |
Available Options: |
3172 |
04 Mar 14 |
peter |
36 |
-h, --help display this help and exit |
3172 |
04 Mar 14 |
peter |
37 |
-i, --install update M4 macro files in m4/ |
3172 |
04 Mar 14 |
peter |
38 |
-v, --verbose verbosely report processing |
3172 |
04 Mar 14 |
peter |
39 |
EOF |
3172 |
04 Mar 14 |
peter |
40 |
} |
3172 |
04 Mar 14 |
peter |
41 |
|
2095 |
04 Nov 09 |
peter |
42 |
me=bootstrap |
2095 |
04 Nov 09 |
peter |
43 |
verbose=no |
3172 |
04 Mar 14 |
peter |
44 |
install=no |
2095 |
04 Nov 09 |
peter |
# parse options |
2095 |
04 Nov 09 |
peter |
46 |
while test $# -gt 0; do |
2095 |
04 Nov 09 |
peter |
47 |
case "$1" in |
3172 |
04 Mar 14 |
peter |
48 |
--help | -h) func_help; exit 0;; |
3172 |
04 Mar 14 |
peter |
49 |
--install | -i) install=yes;; |
2095 |
04 Nov 09 |
peter |
50 |
--verbose | -v) verbose=yes;; |
2095 |
04 Nov 09 |
peter |
51 |
*) echo "$me: invalid option '$1'" >& 2 && exit 1;; |
2095 |
04 Nov 09 |
peter |
52 |
esac |
2095 |
04 Nov 09 |
peter |
53 |
shift; |
2095 |
04 Nov 09 |
peter |
54 |
done |
3172 |
04 Mar 14 |
peter |
55 |
|
3172 |
04 Mar 14 |
peter |
56 |
: ${ACLOCAL="aclocal"} |
3172 |
04 Mar 14 |
peter |
57 |
export ACLOCAL |
3172 |
04 Mar 14 |
peter |
58 |
|
2470 |
12 Apr 11 |
peter |
59 |
cmd="autoreconf --install --symlink --force"; |
2095 |
04 Nov 09 |
peter |
60 |
if test "x$verbose" = "xno"; then |
2470 |
12 Apr 11 |
peter |
61 |
exec > /dev/null |
2470 |
12 Apr 11 |
peter |
62 |
else |
2470 |
12 Apr 11 |
peter |
63 |
cmd="$cmd --verbose" |
1757 |
29 Jan 09 |
peter |
64 |
fi |
3172 |
04 Mar 14 |
peter |
65 |
test x"$install" = x"yes" && ACLOCAL="$ACLOCAL --install" |
3172 |
04 Mar 14 |
peter |
66 |
|
2095 |
04 Nov 09 |
peter |
67 |
echo "$me: running: $cmd"; |
2095 |
04 Nov 09 |
peter |
68 |
exec $cmd; |