-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha03-bazel0.3.1.sh
44 lines (25 loc) · 1.15 KB
/
a03-bazel0.3.1.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
#!/bin/bash
#assumes both these commands have been done
#sudo su
#apt-get update
sudo mkdir /opt/bazel
cd /opt/bazel
#sudo wget https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel-0.3.1-installer-linux-x86_64.sh -O ~/mymagenta/bazel/bazel-0.3.1-installer-linux-x86_64.sh
sudo wget https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel-0.3.1-installer-linux-x86_64.sh
sudo chmod +x bazel-0.3.1-installer-linux-x86_64.sh
echo "Presently these next two commands not working well. May have to do from the command line"
sudo ./bazel-0.3.1-installer-linux-x86_64.sh --user
#bash bazel-0.2.3-installer-linux-x86_64.sh --user --bin=${IDEDIR}/bin
#export PATH=$PATH:~/bin
export BAZEL_HOME=/opt/bazel
export PATH="$PATH:$BAZEL_HOME/bin"
echo "Just test if bazel is working"
#sudo rm bazel-0.3.1-installer-linux-x86_64.sh
printf "\n\nexport BAZEL_HOME=/opt/bazel\nexport PATH=\$PATH:\$BAZEL_HOME/bin" >> ~/.bashrc
#printf "\n\nsource ./bin/bazel-complete.bash" >> ~/.bashrc
bazel
bazel -h
echo "Might be needed if you open a new terminal to reset the path to bazel"
echo ""
echo "Did bazel install? Should see the bazel help info"
cd /home