-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.sh
executable file
·56 lines (45 loc) · 1.1 KB
/
init.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
set -e
#
# StereoPipeline config fails if it can't find the visionworkbench or ISIS binaries.
# So this script configures and builds everything in the right order.
# After running this script we can run configures and builds in any order.
#
case $1 in
"Debug" ) ;;
"MinSizeRel" ) ;;
"RelWithDebInfo" ) ;;
"Release" ) ;;
* )
echo "./init.sh [Debug|MinSizeRel|RelWithDebInfo|Release]"
exit 1
;;
esac
#
# Set all scripts as executable.
#
chmod +x *.sh
#
# Ready this dir.
#
bash checkout.sh
bash configure.sh $1 f2c
bash make_install.sh f2c
bash make_install.sh cspice_src
bash make_install.sh cspice
bash configure.sh $1 vw
bash make_install.sh vw
bash make_install.sh spiceypy
bash make_install.sh ale
# Building ISIS is a 2 pass process, for some reason.
# I think the first configure & build populates build/inc, which allows the second configure to properly generate the install script.
bash configure.sh $1 isis
bash make.sh isis
bash configure.sh $1 isis
bash make_install.sh isis
bash configure.sh $1 asp
bash make_install.sh asp
# Setup VSCode.
pushd vscode
bash config.sh restore
popd