-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsmpl.sh
More file actions
executable file
·120 lines (103 loc) · 2.9 KB
/
smpl.sh
File metadata and controls
executable file
·120 lines (103 loc) · 2.9 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Install all depepdencies
basedir=$(dirname "$0")
source ${basedir}/common_helpers.sh
source ${basedir}/smpl_install.sh
smpl_clean() {
echo clean $1
}
smpl_installx (){
echo install $1
}
smpl_install_only() {
echo install_only $1
}
if [ "$1" == "help" ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]
then
smpl_help;
echo Install all dependencies boost, openssl, catch2, nlohmann_json
echo Usage:
echo install_dependencies.sh [arg]
echo
echo args is either
echo help Print this help message
echo install After build copy include and libs to final destination
echo
echo The required packages are downloaded into a temp dir inside the scripts dir
echo If required the package is built and the headers and libs copied either
echo to a temporary "stage" directory or to the final location
exit 0
elif [ "$1" == "clean" ]
then
shift
smpl_clean $@
elif [ "$1" == "install" ]
then
shift
smpl_install "install" $@
elif [ "$1" == "install_only" ]
then
shift
smpl_install_only $@
else
echo ERROR - $1 is unknown cmd
exit 1
fi
# pwd=`pwd`
# project_dir=$pwd
# project_name=$(basename $project_dir)
# source_dir=${project_dir}/marvin
# external_src=${source_dir}/external_src
# vendor=${project_dir}/vendor
# if [ "$debug" != "" ] ; then echo $pwd; fi
# if [ $project_name != "marvin++" ] ; then
# echo "You are in the wrong directory : [" ${project_name} "] should be at project root "
# exit 1
# fi
# if [ -d ${vendor} ] ; then
# if [ "$1" == "install" ] ; then
# vendor_saved=${project_dir}/vendor-$(date +"%Y_%m_%d_%H_%M")
# echo ${vendor_saved}
# echo SAVING ${vendor} to ${vendor_saved}
# echo mv ${vendor} ${vendor_saved}
# mv ${vendor} ${vendor_saved}
# mkdir -p ${vendor}
# fi
# else
# mkdir -p ${vendor}
# fi
# if [ -d ${external_src} ] ; then
# if [ "$1" == "install" ] ; then
# rm -rf ${external_src}/*
# fi
# else
# mkdir -p ${external_src}
# fi
# script_dir=$(dirname $(realpath $0))
# clone_dir=${script_dir}/cloned_repos
# stage_dir=${script_dir}/stage
# if [ "$debug" != "" ] ; then echo should be external_code: ${script_dir}; fi
# if [ "$debug" != "" ] ; then echo should be external_code/cloned_repos: ${clone_dir}; fi
# if [ -d ${clone_dir} ] ; then
# rm -rf ${clone_dir}/*
# else
# mkdir -p ${clone_dir}
# fi
# if [ -d ${stage_dir} ] ; then
# rm -rf ${stage_dir}/*
# else
# mkdir -p ${stage_dir}
# fi
# ${script_dir}/install_doctest.sh $1
# ${script_dir}/install_catch2.sh $1
# ${script_dir}/install_nlohmann_json_3.7.3.sh $1
# ${script_dir}/install_boost_1.72.0.sh $1
# ${script_dir}/install_openssl_1.1.1.sh $1
# ${script_dir}/install_http_parser.sh $1
# ${script_dir}/install_simple_buffer.sh $1
# ${script_dir}/install_urlparser.sh $1
# ${script_dir}/install_cxxurl.sh $1
# ${script_dir}/install_trog2.sh $1
# ${script_dir}/install_libcert.sh $1
# if [ "$1" == "install" ] || [ "$1" == "install_only" ] ; then
# ${script_dir}/install_openssl_default_cert_file.sh
# fi