Changeset 3172


Ignore:
Timestamp:
Mar 4, 2014, 3:38:11 AM (10 years ago)
Author:
Peter
Message:

add --help and --install options to bootstrap. --help does the obvious. With --install aclocal will be called so that m4 files are updated in; useful for maintainer but might be dangerous for random bootstrapper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap

    r2470 r3172  
    77# Copyright (C) 2006 Jari Häkkinen
    88# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    9 # Copyright (C) 2009, 2011 Peter Johansson
     9# Copyright (C) 2009, 2011, 2014 Peter Johansson
    1010#
    1111# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2525
    2626# Run this to generate all auto-generated files needed by the GNU
    27 # configure program.
     27# configure program.
     28
     29func_help ()
     30{
     31cat <<EOF
     32Usage: $me [OPTION]...
     33
     34Available Options:
     35  -h, --help      display this help and exit
     36  -i, --install   update M4 macro files in m4/
     37  -v, --verbose   verbosely report processing
     38EOF
     39}
    2840
    2941me=bootstrap
    3042verbose=no
     43install=no
    3144# parse options
    3245while test $# -gt 0; do
    3346    case "$1" in
     47  --help | -h) func_help; exit 0;;
     48  --install | -i) install=yes;;
    3449  --verbose | -v) verbose=yes;;
    3550  *) echo "$me: invalid option '$1'" >& 2 && exit 1;;
     
    3752    shift;
    3853done
     54
     55: ${ACLOCAL="aclocal"}
     56export ACLOCAL
     57
    3958cmd="autoreconf --install --symlink --force";
    4059if test "x$verbose" = "xno"; then
     
    4362    cmd="$cmd --verbose"
    4463fi
     64test x"$install" = x"yes" && ACLOCAL="$ACLOCAL --install"
     65
    4566echo "$me: running: $cmd";
    4667exec $cmd;
Note: See TracChangeset for help on using the changeset viewer.