forked from hafs-community/HAFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_all.sh
executable file
·102 lines (86 loc) · 2.47 KB
/
build_all.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/sh
set -eux
#------------------------------------
# USER DEFINED STUFF:
#
# USE_PREINST_LIBS: set to "true" to use preinstalled libraries.
# Anything other than "true" will use libraries locally.
#------------------------------------
export USE_PREINST_LIBS="true"
#------------------------------------
# END USER DEFINED STUFF
#------------------------------------
build_dir=`pwd`
logs_dir=$build_dir/logs
mkdir -p $logs_dir
mkdir -p ../exec
#------------------------------------
# INCLUDE PARTIAL BUILD
#------------------------------------
. ./partial_build.sh
#------------------------------------
# build libraries first
#------------------------------------
$Build_libs && {
echo " .... Library build not currently supported .... "
#echo " .... Building libraries .... "
#./build_libs.sh > $logs_dir/build_libs.log 2>&1
}
#------------------------------------
# build forecast
#------------------------------------
$Build_forecast && {
echo " .... Building forecast .... "
./build_forecast.sh > $logs_dir/build_forecast.log 2>&1
}
#------------------------------------
# build post
#------------------------------------
$Build_post && {
echo " .... Building post .... "
./build_post.sh > $logs_dir/build_post.log 2>&1
}
#------------------------------------
# build tracker
#------------------------------------
$Build_tracker && {
echo " .... Building tracker .... "
./build_tracker.sh > $logs_dir/build_tracker.log 2>&1
}
#------------------------------------
# build utils
#------------------------------------
$Build_utils && {
echo " .... Building utils .... "
./build_utils.sh > $logs_dir/build_utils.log 2>&1
}
#------------------------------------
# build tools
#------------------------------------
$Build_tools && {
echo " .... Building tools .... "
./build_tools.sh > $logs_dir/build_tools.log 2>&1
}
#------------------------------------
# build gsi
#------------------------------------
$Build_gsi && {
echo " .... Building gsi .... "
./build_gsi.sh > $logs_dir/build_gsi.log 2>&1
}
#------------------------------------
# build hycom_utils
#------------------------------------
$Build_hycom_utils && {
echo " .... Building hycom_utils .... "
./build_hycom_utils.sh > $logs_dir/build_hycom_utils.log 2>&1
}
#------------------------------------
# build ww3_utils
#------------------------------------
$Build_ww3_utils && {
echo " .... Building ww3_utils .... "
./build_ww3_utils.sh > $logs_dir/build_ww3_utils.log 2>&1
}
echo;echo " .... Build system finished .... "
exit