forked from marciogameiro/DSGRN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oldinstall.sh
executable file
·56 lines (46 loc) · 2.17 KB
/
oldinstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# install.sh [--prefix=PREFIX] [--build=BUILDTYPE] \
# [--search=SEARCHPATH] [CMake arguments]
#
# Build the project with the supplied configurations,
# or else default values.
#
# PREFIX gives the location to install.
# BUILDTYPE is either Debug or Release
# (or some other CMake recognizable build type)
# SEARCHPATH is an optional location to search for headers
# and libraries (i.e. SEARCHPATH/include and SEARCHPATH/lib)
# The default setting for PREFIX is /usr/local unless it is not writable
# in which case it is ~/.local.
# The default setting for BUILDTYPE is Release
# The default setting for SEARCHPATH is to be equal to PREFIX
# Additional arguments will be passed to CMake. Any paths in these arguments
# should be absolute.
SRC_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
build="$SRC_ROOT/.install/build.sh"
# Parse command line arguments
source $SRC_ROOT/.install/parse.sh
# Build "NetworkLogic"
cd $SRC_ROOT/software/NetworkLogic
$build --prefix=$PREFIX --searchpath=$SEARCHPATH --build=$BUILDTYPE $MASS || exit 1
# Install Logic files
echo Computing logic resource files. This may take several minutes.
mkdir -p $PREFIX/share/DSGRN/logic || exit 1
./bin/NetworkLogic 6 || exit 1
mv -f *.dat $PREFIX/share/DSGRN/logic/ || exit 1
# Build "DSGRN"
cd ${SRC_ROOT}
$build --prefix=$PREFIX --searchpath=$SEARCHPATH --build=$BUILDTYPE --test $MASS || exit 1
# Build and Test "Signatures"
cd $SRC_ROOT/software/Signatures
$build --prefix=$PREFIX --searchpath=$SEARCHPATH --build=$BUILDTYPE --test $MASS || exit 1
# Build and Test "DSGRN-Database"
cd $SRC_ROOT/software/DSGRN-Database
$build --prefix=$PREFIX --searchpath=$SEARCHPATH --build=$BUILDTYPE --test $MASS || exit 1
# Build and Test "PatternMatch"
cd $SRC_ROOT/software/PatternMatch
./install.sh --prefix=$PREFIX --searchpath=$SEARCHPATH --build=$BUILDTYPE $MASS || exit 1
# Build and Test "ParameterSampler"
# TODO: problem, requires Mathematics computed databases so this will fail the Travis build
# cd $SRC_ROOT/software/AlgebraicGeometry
# ./install.sh --prefix=$PREFIX --searchpath=$SEARCHPATH --build=$BUILDTYPE $MASS || exit 1