~welt/murse

b2c8ae7f810ea04ecbef996206d12655e0dbdb77 — welt 3 months ago a19028e
Update ancient Makefile, change upgradeMain's parameter name
2 files changed, 6 insertions(+), 6 deletions(-)

M Makefile
M upgrade.go
M Makefile => Makefile +4 -4
@@ 1,4 1,4 @@
static:
	CGO_ENABLED=0 go build -tags netgo -ldflags '-s -w' -o murse
cgo:
	go build  -ldflags "-s -w" ./ 
linux:
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags netgo -ldflags '-s -w' -o murse
windows:
	CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -tags netgo -ldflags "-s -w" -o murse.exe 

M upgrade.go => upgrade.go +2 -2
@@ 10,7 10,7 @@ import (
	"strings"
)

func upgradeMain(dir string, url string, threads int, http2 bool, overwGameInfo bool) int {
func upgradeMain(dir string, url string, threads int, http2 bool, owGameInfo bool) int {
	if !strings.HasSuffix(url, "/") {
		url = url + "/"
	}


@@ 105,7 105,7 @@ func upgradeMain(dir string, url string, threads int, http2 bool, overwGameInfo 
		path := filepath.FromSlash(change.Path)
		fpath := filepath.Join(dir, path)
		f := func() error {
			if !overwGameInfo && isOF && change.Path == "gameinfo.txt" {
			if !owGameInfo && isOF && change.Path == "gameinfo.txt" {
				exists, err := isExists(fpath)
				if err != nil {
					return err