forked from coq/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coq_platform_make.sh
executable file
·75 lines (49 loc) · 2.29 KB
/
coq_platform_make.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
#!/usr/bin/env bash
###################### COPYRIGHT/COPYLEFT ######################
# (C) 2020 Michael Soegtrop
# Released to the public under the
# Creative Commons CC0 1.0 Universal License
# See https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
###################### SCRIPT INITIALIZATION #####################
cd "$(dirname "${BASH_SOURCE[0]}")"
source shell_scripts/init_safety_debug.sh
source shell_scripts/init_paths.sh
source shell_scripts/init_utilities.sh
source shell_scripts/init_machine_type.sh
source shell_scripts/init_cygwin_fixes.sh
###################### SETTINGS #####################
export OPAMYES=${OPAMYES:-1}
export OPAMCOLOR=never
###################### PARAMETERS #####################
source shell_scripts/parse_cmdline_arguments.sh
###################### SYSTEM SANITY CHECKS #####################
source shell_scripts/check_system.sh
source shell_scripts/check_compiler.sh
source shell_scripts/sanitize_environment.sh
###################### USER CHOICES #####################
# NOTE: These choices can be skipped by setting the environment variables
# tested in the scripts.
# NOTE: If you comment some questions for a custom setup, please assign
# the variable set in the script a default value.
source package_picks/coq_platform_release.sh
source shell_scripts/ask_introduction.sh
source shell_scripts/ask_packagelist.sh
source shell_scripts/ask_parallel_build.sh
source shell_scripts/ask_compcert_open_source.sh
source shell_scripts/ask_vst.sh
###################### PACKAGE SELECTION #####################
source ${COQ_PLATFORM_PACKAGE_PICK_FILE}
source package_picks/coq_platform_switch_name.sh
###################### INSTALL/INIT OPAM #####################
source shell_scripts/ask_delete_opam_switch.sh
source shell_scripts/install_opam.sh
source shell_scripts/check_opam_sandbox.sh
source shell_scripts/install_opam_depext.sh
source shell_scripts/coq_platform_override_dev_pkg.sh
if [ "${COQ_PLATFORM_OPAM_ONLY:-n}" == "y" ]; then return 0; fi
###################### INSTALL PREREQUISITES #####################
source shell_scripts/install_system_prerequisites.sh
###################### BUILD ALL PACKAGES #####################
source shell_scripts/build.sh
###################### CLOSING #####################
source shell_scripts/closing_remarks.sh