-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·56 lines (48 loc) · 1.22 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·56 lines (48 loc) · 1.22 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
#!/usr/bin/env bash
source ./scripts/common.sh
source ./scripts/installers.sh
PWD="$(pwd)"
# run projectChoise first from scripts/common
PKGS=( $(projectChoise) )
OS=$(getOS)
if [[ ${#PKGS[*]} == 0 ]]; then
exit
fi
#echo "Packages to install: ${#PKGS[*]}"
while [[ $OS != "" ]] #some type of OS
do
case $OS in
"Win")
chocoPkgInstaller $PKGS
break
;;
"Mac")
brewPkgInstaller $PKGS
break
;;
"Lin")
brewPkgInstaller $PKGS
break
;;
*) echo "Unknown OS"
echo "Not able to install packages"
break
;;
esac
done
echo
#if [ ${unameOut} == "CYGWIN" ]; then
# VBOX="/cygdrive/c/Program Files/Oracle/VirtualBox"
#fi
#if [ ${unameOut} == "Darwin" ]; then
# export JAVA_HOME=$(/usr/libexec/java_home)
# export M3_HOME=/Applications/apache-maven-3.6.0
# export M2_HOME=/Applications/apache-maven-3.6.0
# export MVN_HOME=/Applications/apache-maven-3.6.0
#elif [ ${unameOut} == "CYGWIN" ]; then
# export JAVA_HOME=/cygdrive/c/Program\ Files/Java/jdk1.8.0_92
# export M3_HOME=/opt/apache-maven-3.6.0
# export M2_HOME=/opt/apache-maven-3.6.0
#fi
#export PATH=$PATH:$JAVA_HOME/bin:$MVN_HOME/bin:$LOGSTASH_HOME/bin
#export PATH=$PATH:$M3_HOME/bin:$M2_HOME/bin