manjaro.sh raw
1 #!/bin/bash
2 cd ~
3 yay -Syy wget git base-devel
4 wget -c https://golang.org/dl/go1.14.13.linux-amd64.tar.gz
5 sudo rm -rf ~/go
6 tar zxvf go1.14.13.linux-amd64.tar.gz
7 cat <<EOF >> ~/.bashrc
8 export GOBIN=$HOME/.local/bin
9 export GOPATH=$HOME
10 export GOROOT=$HOME/go
11 export PATH=$HOME/go/bin:$PATH
12 EOF
13 mkdir -p src/github.com/p9c
14 cd src/github.com/p9c
15 git clone https://github.com/p9c/p9.git
16 cd pod
17 source ~/.bashrc
18 go mod tidy
19 make -B stroy
20 stroy guass
21