bootstrap
author deba
Wed, 01 Mar 2006 10:17:25 +0000
changeset 1990 15fb7a4ea6be
parent 1304 c9c2e90b2342
child 2012 224cd6aacfc1
permissions -rwxr-xr-x
Some classes assumed that the GraphMaps should be inherited
from an ObserverBase. These classes parents replaced with
DefaultMap which cause that the graph maps should not be
inherited from the ObserverBase.
     1 #!/bin/bash
     2 
     3 prev=
     4 for option
     5 do
     6   if test -n "$prev"
     7   then
     8     eval "$prev=\$option"
     9     prev=
    10     continue
    11   fi
    12 
    13   optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
    14 
    15   case $option in
    16 
    17   -amver | --amver)
    18     prev=amver ;;
    19   -amver=* | --amver=*)
    20     amver=$optarg ;;
    21 
    22   -acver | --acver)
    23     prev=acver ;;
    24   -acver=* | --acver=*)
    25     acver=$optarg ;;
    26 
    27   --help | -h)
    28     cat << EOF
    29 Usage: $0 [OPTION]
    30 
    31 Options:
    32   -h, --help            display this help and exit
    33       --amver=VERSION   use VERSION version of automake
    34       --acver=VERSION   use VERSION version of autoconf
    35 
    36 Expamle:
    37   $0 --amver=1.8 --acver=2.59
    38 EOF
    39     exit 0
    40     ;;
    41 
    42   *)
    43     cat << EOF >&2
    44 $0: unrecognized option: $option
    45 Try \`$0 --help' for more information.
    46 EOF
    47     exit 1
    48     ;;
    49 
    50   esac
    51 done
    52 
    53 automake=automake
    54 aclocal=aclocal
    55 autoconf=autoconf
    56 autoheader=autoheader
    57 
    58 if test -n "$amver"
    59 then
    60   automake=automake-$amver
    61   aclocal=aclocal-$amver
    62 fi
    63 
    64 if test -n "$acver"
    65 then
    66   autoconf=autoconf-$acver
    67   autoheader=autoheader-$acver
    68 fi
    69 
    70 set -x
    71 $aclocal -I config \
    72 && libtoolize --force --copy \
    73 && $autoheader \
    74 && $automake --add-missing --copy --gnu \
    75 && $autoconf