forked from homalg-project/CddInterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·64 lines (51 loc) · 1.2 KB
/
install.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
56
57
58
59
60
61
62
63
64
#!/bin/bash
set -e # abort upon error
if [ "$#" -ge 1 ]; then
gap_path=$1
shift
else
gap_path=../..
fi
current_dir=$(pwd)
cd $gap_path
if [ -f "sysinfo.gap" ]; then
echo "Ok, thanks I found the gap installation."
else
echo "ERROR: It seems that the given location for gap installation is not correct."
echo "The given location is $(pwd)."
exit 1
fi
cd $current_dir
echo "## Setting variables"
echo "I am now in $(pwd)"
cddlib_VERSION=0.94m
#cddlib_SHA256=?
cddlib_BASE=cddlib-${cddlib_VERSION}
cddlib_TAR=${cddlib_BASE}.tar.gz
cddlib_URL=https://github.com/cddlib/cddlib/releases/download/${cddlib_VERSION}/${cddlib_TAR}
echo
echo "##"
echo "## downloading ${cddlib_TAR}"
echo "##"
rm -rf cddlib*
rm -rf current_cddlib
etc/download.sh ${cddlib_URL}
tar xvf ${cddlib_TAR}
ln -sf $current_dir/${cddlib_BASE} $current_dir/current_cddlib
rm -rf ${cddlib_TAR}
echo "##"
echo "## compiling cddlib ${cddlib_VERSION}"
echo "##"
cd ${cddlib_BASE}
mkdir build
./bootstrap
./configure --prefix=$(pwd)/build
make
make install
echo "##"
echo "## compiling cdd interface"
echo "##"
cd $current_dir
./autogen.sh
./configure --with-gaproot=${gap_path} --with-cddlib=$(pwd)/current_cddlib/build
make