COIN-OR::LEMON - Graph Library

source: glemon/bootstrap @ 5:390d05b2d25c

Last change on this file since 5:390d05b2d25c was 1:67188bd752db, checked in by Peter Hegyi <hegyi@…>, 16 years ago

SVN revision 3500 made compilable with Lemon 1.0.

File size: 1.2 KB
Line 
1#!/bin/bash
2
3quiet=0
4function quiet { [[ $quiet == 1 ]]; }
5
6if [[ "$1" == "-q" ]]; then
7  quiet=1
8  shift
9fi
10
11prev=
12for option
13do
14  if test -n "$prev"
15  then
16    eval "$prev=\$option"
17    prev=
18    continue
19  fi
20
21  optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
22
23  case $option in
24
25  -amver | --amver)
26    prev=amver ;;
27  -amver=* | --amver=*)
28    amver=$optarg ;;
29
30  -acver | --acver)
31    prev=acver ;;
32  -acver=* | --acver=*)
33    acver=$optarg ;;
34
35  --help | -h)
36    cat << EOF
37Usage: $0 [OPTION]
38
39Options:
40  -h, --help            display this help and exit
41      --amver=VERSION   use VERSION version of automake
42      --acver=VERSION   use VERSION version of autoconf
43
44Expamle:
45  $0 --amver=1.8 --acver=2.59
46EOF
47    exit 0
48    ;;
49
50  *)
51    cat << EOF >&2
52$0: unrecognized option: $option
53Try \`$0 --help' for more information.
54EOF
55    exit 1
56    ;;
57
58  esac
59done
60
61automake=automake
62aclocal=aclocal
63autoconf=autoconf
64autoheader=autoheader
65
66if test -n "$amver"
67then
68  automake=automake-$amver
69  aclocal=aclocal-$amver
70fi
71
72if test -n "$acver"
73then
74  autoconf=autoconf-$acver
75  autoheader=autoheader-$acver
76fi
77
78set -e
79quiet || set -x
80
81autopoint
82$aclocal -I m4
83$autoconf
84$autoheader
85$automake --add-missing --copy --gnu
Note: See TracBrowser for help on using the repository browser.