提交 36b6d1d7 编写于 作者: V visualfc

fix build sh go install for go1.16

上级 a6c60aff
...@@ -53,22 +53,9 @@ else ...@@ -53,22 +53,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
(cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -53,21 +53,9 @@ else ...@@ -53,21 +53,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then (cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -59,22 +59,9 @@ else ...@@ -59,22 +59,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
(cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -53,21 +53,9 @@ else ...@@ -53,21 +53,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then (cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -47,21 +47,9 @@ else ...@@ -47,21 +47,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then (cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -47,21 +47,9 @@ else ...@@ -47,21 +47,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then (cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -47,21 +47,9 @@ else ...@@ -47,21 +47,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then (cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -53,21 +53,9 @@ else ...@@ -53,21 +53,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then (cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -53,22 +53,9 @@ else ...@@ -53,22 +53,9 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
(cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
......
...@@ -53,29 +53,15 @@ else ...@@ -53,29 +53,15 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
(cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
exit 1 exit 1
fi fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
echo export qrc images echo export qrc images
go run src/tools/exportqrc/main.go -root . go run src/tools/exportqrc/main.go -root .
......
...@@ -54,29 +54,15 @@ else ...@@ -54,29 +54,15 @@ else
export GOPATH=$PWD:$GOPATH export GOPATH=$PWD:$GOPATH
fi fi
(cd "$PWD/src/github.com/visualfc/gotools" && go install -ldflags "-s" -v)
go install -ldflags "-s" -v github.com/visualfc/gotools (cd "$PWD/src/github.com/visualfc/gocode" && go install -ldflags "-s" -v)
(cd "$PWD/src/github.com/fatih/gomodifytags" && go install -ldflags "-s" -v)
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
go install -ldflags "-s" -v github.com/visualfc/gocode
if [ $? -ge 1 ]; then if [ $? -ge 1 ]; then
echo 'error, go install fail' echo 'error, go install fail'
exit 1 exit 1
fi fi
go install -ldflags "-s" -v github.com/fatih/gomodifytags
if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi
echo export qrc images echo export qrc images
go run src/tools/exportqrc/main.go -root . go run src/tools/exportqrc/main.go -root .
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册