COIN-OR::LEMON - Graph Library

source: lemon-tutorial/configure @ 34:eda742a0b1b4

Last change on this file since 34:eda742a0b1b4 was 34:eda742a0b1b4, checked in by Alpar Juttner <alpar@…>, 14 years ago

Use lemon doc version 1.1.1 (plus remove a redundant reference to it)

  • Property exe set to *
File size: 1.3 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      --lemon-doc-prefix)
25          prev=lemon_doc_prefix ;;
26      --lemon-doc-prefix=*)
27      lemon_doc_prefix=$optarg ;;
28      --help | -h)
29          cat << EOF
30Usage: $0 [OPTION]
31
32Options:
33  -h, --help                  display this help and exit
34      --lemon-doc-prefix=loc  The location of the lemon doc. By default it is
35                              http://lemon.cs.elte.hu/pub/doc/1.1.1
36
37Expamle:
38  $0 --lemon-doc-prefix=file://usr/local/share/doc/lemon/docs/
39EOF
40    exit 0
41    ;;
42
43  *)
44    cat << EOF >&2
45$0: unrecognized option: $option
46Try \`$0 --help' for more information.
47EOF
48    exit 1
49    ;;
50
51  esac
52done
53
54
55if test -z "$lemon_doc_prefix"
56then
57    lemon_doc_prefix='http://lemon.cs.elte.hu/pub/doc/1.1.1'
58fi
59lemon_doc_prefix=$(echo $lemon_doc_prefix|sed 's/\//\\\\\\\//g')
60
61lemon_cflags=$(pkg-config --cflags lemon|sed 's/\//\\\//g')
62lemon_libs=$(pkg-config --libs lemon|sed 's/\//\\\//g')
63
64
65sed -e "s/@lemon_cflags@/${lemon_cflags}/g" \
66    -e "s/@lemon_libs@/${lemon_libs}/g" \
67   -e "s/@make_lemon_doc_prefix@/${lemon_doc_prefix}/g" \
68    < Makefile.in > Makefile
Note: See TracBrowser for help on using the repository browser.