COIN-OR::LEMON - Graph Library

source: lemon-tutorial/configure @ 19:9196fcd0d4d6

Last change on this file since 19:9196fcd0d4d6 was 17:0b3b26cd1cea, checked in by Alpar Juttner <alpar@…>, 16 years ago

Better build system

  • configure script added
  • demo/*.cc are now compiled (the executables are in demo/build)
  • version number appears in the doc and automatically updates
  • the cross reference to the lemon doc can be relocated (e.g. to a local copy of the doc)
  • some repo reorganization has taken place
  • better .hgignore
  • Property exe set to *
File size: 1.3 KB
RevLine 
[17]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.0
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.0'
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.