-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·107 lines (78 loc) · 1.42 KB
/
install
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
#!/usr/bin/env bash
rvm_load_rvm=0
source "scripts/rvm"
source "scripts/functions/installer"
#
# RVM Installer
#
determine_install_path
determine_install_or_upgrade
install_setup
# Parse RVM Installer CLI arguments.
while (( $# > 0 ))
do
token="$1"
shift
case "$token" in
--auto)
rvm_auto_flag=1
;;
--prefix)
rvm_prefix="$1"
shift
;;
--path)
rvm_path="$1"
shift
;;
--version)
rvm_path="${PWD%%+(\/)}"
__rvm_version
unset rvm_path
exit
;;
--debug)
export rvm_debug_flag=1
set -o verbose
;;
--trace)
set -o xtrace
export rvm_trace_flag=1
echo "$@"
env | grep '^rvm_'
export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "
;;
--help)
install_usage
exit 0
;;
*)
echo "Unrecognized option: $token"
install_usage
exit 1
;;
esac
done
create_install_paths
print_install_header
configure_installation
cleanse_old_entities
install_rvm_files
ensure_scripts_are_executable
setup_configuration_files
install_binscripts
automatic_profile_setup
install_gemsets
install_patchsets
cleanse_old_environments
migrate_old_gemsets
migrate_defaults
correct_binary_permissions
install_man_pages
root_canal
setup_rvmrc
setup_user_profile
cleanup_tmp_files
display_notes
display_thank_you
exit 0