/[cvs]/eggdrop1.7/misc/runautotools
ViewVC logotype

Contents of /eggdrop1.7/misc/runautotools

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Mon Nov 20 13:53:32 2006 UTC (12 years, 7 months ago) by tothwolf
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
* Updated copyright dates for 2006 (better late than never).

1 #! /bin/sh
2 #
3 # runautotools -
4 #
5 # Copyright (C) 2004 - 2006 Eggheads Development Team
6 #
7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25 #
26 # $Id: runautotools,v 1.3 2005/01/21 01:43:38 wcc Exp $
27
28 show_usage() {
29 echo "Usage: `basename $0` [-h|-v]"
30 echo " -h, --help - Print this help and exit."
31 echo " -v, --verbose - Use verbose mode when running autoconf."
32 exit 0
33 }
34
35 run_autoconf() {
36 if test $use_verbose = 1; then
37 autoconf -v
38 else
39 autoconf
40 fi
41 }
42
43 if test ! -f src/main.c; then
44 echo "You are not in the Eggdrop root directory."
45 exit 1
46 fi
47
48 use_verbose=0
49 for arg in $@; do
50 if test "x${arg}" = "x-h" || test "x${arg}" = "x--help"; then
51 show_usage
52 fi
53 if test "x${arg}" = "x-v" || test "x${arg}" = "x--verbose"; then
54 use_verbose=1
55 fi
56 done
57
58 echo "Running autotools in root directory..."
59 run_autoconf
60 autoheader
61
62 CURRENT_PWD=$PWD
63 for i in $(find ./src/mod -name "configure.ac" -exec dirname '{}' ';'); do
64 cd $i && run_autoconf
65 echo "Running autoconf in $i..."
66 cd $CURRENT_PWD
67 done
68
69 for i in $(find ./src/mod -name "config.h.in" -exec dirname '{}' ';'); do
70 cd $i && autoheader
71 echo "Running autoheader in $i..."
72 cd $CURRENT_PWD
73 done
74
75 echo ""
76 echo "Complete."

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23