Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcc8299

Browse files
author
studygolang
committed
修改脚本
1 parent 40b3379 commit fcc8299

File tree

4 files changed

+29
-22
lines changed

4 files changed

+29
-22
lines changed

websites/code/studygolang/install

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ CURDIR=`pwd`
1111
OLDGOPATH="$GOPATH"
1212
export GOPATH="$CURDIR:$CURDIR/../thirdparty"
1313

14+
if [ ! -d log ]; then
15+
mkdir log
16+
fi
17+
1418
gofmt -w src
1519

1620
go install studygolang

websites/code/studygolang/install.bat

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
@echo off
2-
3-
setlocal
4-
5-
if exist install.bat goto ok
6-
echo install.bat must be run from its folder
7-
goto end
8-
9-
:ok
10-
11-
set OLDGOPATH=%GOPATH%
12-
set GOPATH=%~dp0;%~dp0..\thirdparty
13-
14-
gofmt -w src
15-
16-
go install -tags "debug" studygolang
17-
go install -tags "debug" datamig
18-
19-
set GOPATH=%OLDGOPATH%
20-
21-
:end
1+
@echo off
2+
3+
setlocal
4+
5+
if exist install.bat goto ok
6+
echo install.bat must be run from its folder
7+
goto end
8+
9+
:ok
10+
11+
set OLDGOPATH=%GOPATH%
12+
set GOPATH=%~dp0;%~dp0..\thirdparty
13+
14+
if not exist log mkdir log
15+
16+
gofmt -w src
17+
18+
:: -tags "debug" 表示测试
19+
go install -tags "debug" studygolang
20+
21+
set GOPATH=%OLDGOPATH%
22+
23+
:end
2224
echo finished

websites/code/thirdparty/install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gofmt -w src
1515
go install github.com/go-sql-driver/mysql
1616
go install github.com/studygolang/mux
1717
go install github.com/gorilla/sessions
18+
go install go.net/websocket
1819

1920
export GOPATH="$OLDGOPATH"
2021
export PATH="$OLDPATH"

websites/code/thirdparty/install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set GOPATH=%~dp0
1414
go install github.com/go-sql-driver/mysql
1515
go install github.com/studygolang/mux
1616
go install github.com/gorilla/sessions
17-
go install github.com/gorilla/go.net/*
17+
go install go.net/websocket
1818

1919
set GOPATH=%OLDGOPATH%
2020

0 commit comments

Comments
 (0)