-
Notifications
You must be signed in to change notification settings - Fork 1
/
ubuntu_compile_develop.sh
executable file
·52 lines (42 loc) · 1.17 KB
/
ubuntu_compile_develop.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
#!/bin/bash
LAL_HEADERS="../linear-arrangement-library"
LAL_LIBRARY_RELEASE="../linear-arrangement-library/lal-release"
LAL_LIBRARY_DEBUG="../linear-arrangement-library/lal-debug"
if [ -z $1 ]; then
PYTHON_HEADERS="/usr/include/python3.10"
./compile.sh \
--environment=development \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY_RELEASE" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$PYTHON_HEADERS" \
--build=release
./compile.sh \
--environment=development \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY_DEBUG" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$PYTHON_HEADERS" \
--build=debug
# for anaconda users only
elif [ "$1" == "anaconda" ]; then
anaconda_dir="/home/$USER/anaconda3"
./compile.sh \
--environment=development \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY_RELEASE" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$anaconda_dir/include/python3.9" \
--build=release
./compile.sh \
--environment=development \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY_DEBUG" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$anaconda_dir/include/python3.9" \
--build=debug
fi