File tree Expand file tree Collapse file tree 4 files changed +29
-22
lines changed Expand file tree Collapse file tree 4 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ CURDIR=`pwd`
11
11
OLDGOPATH=" $GOPATH "
12
12
export GOPATH=" $CURDIR :$CURDIR /../thirdparty"
13
13
14
+ if [ ! -d log ]; then
15
+ mkdir log
16
+ fi
17
+
14
18
gofmt -w src
15
19
16
20
go install studygolang
Original file line number Diff line number Diff line change 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
22
24
echo finished
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ gofmt -w src
15
15
go install github.com/go-sql-driver/mysql
16
16
go install github.com/studygolang/mux
17
17
go install github.com/gorilla/sessions
18
+ go install go.net/websocket
18
19
19
20
export GOPATH=" $OLDGOPATH "
20
21
export PATH=" $OLDPATH "
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ set GOPATH=%~dp0
14
14
go install github.com/go-sql-driver/mysql
15
15
go install github.com/studygolang/mux
16
16
go install github.com/gorilla/sessions
17
- go install github.com/gorilla/ go.net/*
17
+ go install go.net/websocket
18
18
19
19
set GOPATH = %OLDGOPATH%
20
20
You can’t perform that action at this time.
0 commit comments