Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 93 lines (82 sloc) 1.63 kb
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
1 #! /bin/bash
2 #
3 # This is a simple dropin for configure - so as to make life easier
4 # for newcomers to cmake.
5 #
6 # A number of switches gets translated use ./configure with:
7 #
8 # --with-perl : build biolib for Perl (default)
9 # --with-ruby : build biolib for Ruby
10 # --with-python : build biolib for Python
11 #
12 # In addition libraries can be specified
13
14 # --with-staden : see the BioLib docs
15 # --with-affyio
16 # --with-rqtl
847bda6 Pjotr Prins Can make python example from configure
authored
17 # --with-example
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
18 #
19
20 if [ ! -d ./src ]; then
21 echo "FATAL: run from the root of the Biolib tree"
22 exit 1
23 fi
24
65e7617 Pjotr Prins Testing on cygwin
authored
25 if [ -d .git ]; then
26 echo "Updating git submodules"
27 git submodule init
28 git submodule update
29 fi
30
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
31 language=$1
b35599f Pjotr Prins Added Ruby mapping for R/QTL
authored
32 if [ -z $language ]; then
33 language='--with-perl'
34 fi
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
35
36 case $language in
37 '--help')
38 echo "See the ./INSTALL document for configuration options"
39 exit 1
40 ;;
41 '--with-perl')
42 plang="-DBUILD_PERL:BOOLEAN=TRUE"
43 shift
44 ;;
45 '--with-ruby')
46 plang="-DBUILD_RUBY:BOOLEAN=TRUE"
47 shift
48 ;;
5d10c83 Pjotr Prins Adding Python support
authored
49 '--with-python')
50 plang="-DBUILD_PYTHON:BOOLEAN=TRUE"
51 shift
52 ;;
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
53 *)
54 echo "BioLib defaulting to Perl build"
55 plang="-DBUILD_PERL:BOOLEAN=TRUE"
56 library=$language
57 esac
58
59 if [ -z $library ]; then
60 library=$1
61 shift
62 fi
63
64 case $library in
65 '--with-staden')
66 plib="-DSTADEN_LIB:BOOLEAN=TRUE"
67 shift
68 ;;
69 '--with-affyio')
70 plib="-DAFFYIO_LIB:BOOLEAN=TRUE"
71 shift
72 ;;
73 '--with-rqtl')
74 plib="-DRQTL_LIB:BOOLEAN=TRUE"
75 shift
76 ;;
847bda6 Pjotr Prins Can make python example from configure
authored
77 '--with-example')
78 plib="-DEXAMPLE_LIB:BOOLEAN=TRUE"
79 shift
80 ;;
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
81 *)
82 echo "BioLib building all libraries"
83 plib=""
84 esac
85
86 echo $language: $plang
87 echo $library: $plib
88
fbfbe4e Pjotr Prins Added auto cleanup to configure wrapper
authored
89 sh scripts/cleanup.sh
90
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
91 echo cmake $plang $plib $* .
6efdc2f Pjotr Prins Renaming test support folder
authored
92 cmake $plang $plib $* .
Something went wrong with that request. Please try again.