Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix some build weirdness.

  • Loading branch information...
commit 738be81ff6ce7132bfff65a009301168ec5cfa32 1 parent 7e7981b
@AlekSi authored
View
1  .gitignore
@@ -1,3 +1,2 @@
-gonut
*.exe
*.nut
View
5 Makefile
@@ -13,10 +13,11 @@ prepare:
fvb:
gofmt -e -s -w .
$(GO) tool vet .
- $(GO) build -o gonut github.com/AlekSi/nut/nut
+ $(GO) install github.com/AlekSi/nut
+ $(GO) build -o gonut.exe github.com/AlekSi/nut/nut
test: fvb
- cd ../test_nut1 && ../nut/gonut pack
+ cd ../test_nut1 && ../nut/gonut.exe pack
$(GO) test -v github.com/AlekSi/nut -gocheck.v
$(GO) test -v github.com/AlekSi/nut/nut -gocheck.v
View
3  build.bat
@@ -1,3 +1,6 @@
+go install github.com/AlekSi/nut
+@if ERRORLEVEL 1 exit /B %ERRORLEVEL%
+
go build -o gonut.exe github.com/AlekSi/nut/nut
@if ERRORLEVEL 1 exit /B %ERRORLEVEL%
View
7 integration_test/hook_for_test.go
@@ -30,12 +30,7 @@ func init() {
panic(err)
}
- nutBin = filepath.Join(wd, "..", "gonut")
- if runtime.GOOS == "windows" {
- // required for exec
- os.Rename(nutBin, nutBin+".exe")
- nutBin += ".exe"
- }
+ nutBin = filepath.Join(wd, "..", "gonut.exe")
}
func setupTest(c *C) {
Please sign in to comment.
Something went wrong with that request. Please try again.