bootstrap

Code
Comments
Other
Rev Date Author Line
2 20 Dec 05 jari 1 #!/bin/sh
2 20 Dec 05 jari 2
84 13 Mar 06 jari 3 ## $Id$
84 13 Mar 06 jari 4 ##
84 13 Mar 06 jari 5 ## Run this to generate all auto-generated files needed by the GNU
84 13 Mar 06 jari 6 ## configure program. This should be run everytime configure.ac is
84 13 Mar 06 jari 7 ## changed.
2 20 Dec 05 jari 8
978 12 Dec 09 peter 9 # Copyright (C) 2005, 2006 Jari Häkkinen
1635 30 Mar 23 peter 10 # Copyright (C) 2007 Peter Johansson
1635 30 Mar 23 peter 11 # Copyright (C) 2008 Jari Häkkinen, Peter Johansson
1635 30 Mar 23 peter 12 # Copyright (C) 2010, 2011, 2023 Peter Johansson
84 13 Mar 06 jari 13 #
687 04 Aug 08 peter 14 # This file is part of svndigest, http://dev.thep.lu.se/svndigest
84 13 Mar 06 jari 15 #
149 12 Aug 06 jari 16 # svndigest is free software; you can redistribute it and/or modify it
84 13 Mar 06 jari 17 # under the terms of the GNU General Public License as published by
693 11 Sep 08 jari 18 # the Free Software Foundation; either version 3 of the License, or
84 13 Mar 06 jari 19 # (at your option) any later version.
84 13 Mar 06 jari 20 #
149 12 Aug 06 jari 21 # svndigest is distributed in the hope that it will be useful, but
84 13 Mar 06 jari 22 # WITHOUT ANY WARRANTY; without even the implied warranty of
149 12 Aug 06 jari 23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
84 13 Mar 06 jari 24 # General Public License for more details.
84 13 Mar 06 jari 25 #
84 13 Mar 06 jari 26 # You should have received a copy of the GNU General Public License
693 11 Sep 08 jari 27 # along with svndigest. If not, see <http://www.gnu.org/licenses/>.
2 20 Dec 05 jari 28
590 12 Apr 08 jari 29 # Run this to generate all auto-generated files needed by the GNU
590 12 Apr 08 jari 30 # configure program. 
590 12 Apr 08 jari 31
1107 23 Jun 10 peter 32 me=bootstrap
1623 15 Mar 23 peter 33 install=no
1107 23 Jun 10 peter 34 verbose=no
1107 23 Jun 10 peter 35 # parse options
1107 23 Jun 10 peter 36 while test $# -gt 0; do
1107 23 Jun 10 peter 37     case "$1" in
1623 15 Mar 23 peter 38   --install | -i) install=yes;;
1107 23 Jun 10 peter 39   --verbose | -v) verbose=yes;;
1107 23 Jun 10 peter 40   *) echo "$me: invalid option '$1'" >& 2 && exit 1;;
1107 23 Jun 10 peter 41     esac
1107 23 Jun 10 peter 42     shift;
1107 23 Jun 10 peter 43 done
1623 15 Mar 23 peter 44
1623 15 Mar 23 peter 45 : ${ACLOCAL="aclocal"}
1623 15 Mar 23 peter 46 test x"$install" = x"yes" && ACLOCAL="$ACLOCAL --install"
1623 15 Mar 23 peter 47 export ACLOCAL
1623 15 Mar 23 peter 48
1373 10 Jun 11 peter 49 cmd="autoreconf --install --symlink --force";
1107 23 Jun 10 peter 50 if test "x$verbose" = "xno"; then
1373 10 Jun 11 peter 51     exec > /dev/null
1373 10 Jun 11 peter 52 else
1373 10 Jun 11 peter 53     cmd="$cmd --verbose"
1107 23 Jun 10 peter 54 fi
1107 23 Jun 10 peter 55 echo "$me: running: $cmd";
1107 23 Jun 10 peter 56 exec $cmd;