-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-old.sh
executable file
·43 lines (34 loc) · 952 Bytes
/
build-old.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
#!/bin/bash
msg() {
echo 2>&1 "$0": $@
}
build() {
local pkg="$1"
gofmt -s -w "$pkg"
go fix "$pkg"
go vet "$pkg"
#hash gosimple >/dev/null && gosimple "$pkg"
#hash golint >/dev/null && golint "$pkg"
#hash staticcheck >/dev/null && staticcheck "$pkg"
go test -failfast "$pkg"
go install -v "$pkg"
}
#go get golang.org/x/tools/cmd/goyacc
go install modernc.org/goyacc@latest ;# supports %precedence
#goyacc -o ./basparser/parser.go -p Input ./basparser/parser.y
go generate ./basparser ;# see ./basparser/generate.go
build ./basc
build ./baslex
build ./baslex-run
build ./node
build ./basparser
build ./basparser-run
build ./basgo
build ./basgo-run
build ./baslib/codepage
build ./baslib/file
build ./baslib
msg "PLEASE STAND BY: tests for basgo-build may take some minutes"
msg " for full testing output, run the command below:"
msg " go test -test.v -failfast ./basgo-build"
build ./basgo-build