mirror of https://gogs.blitter.com/RLabs/xs
Bumped version, xc reports -v correctly
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
parent
0c1d5e036e
commit
e803d3da09
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
VERSION := 0.8.20
|
||||
VERSION := 0.8.21
|
||||
.PHONY: lint vis clean common client server passwd subpkgs install uninstall reinstall
|
||||
|
||||
## Tag version of binaries with build info wrt.
|
||||
|
|
10
xs/xs.go
10
xs/xs.go
|
@ -727,6 +727,11 @@ func main() {
|
|||
}
|
||||
flag.Parse()
|
||||
|
||||
if vopt {
|
||||
fmt.Printf("version %s (%s)\n", version, gitCommit)
|
||||
exitWithStatus(0)
|
||||
}
|
||||
|
||||
if cpuprofile != "" {
|
||||
f, err := os.Create(cpuprofile)
|
||||
if err != nil {
|
||||
|
@ -802,11 +807,6 @@ func main() {
|
|||
exitWithStatus(0)
|
||||
}
|
||||
|
||||
if vopt {
|
||||
fmt.Printf("version %s (%s)\n", version, gitCommit)
|
||||
exitWithStatus(0)
|
||||
}
|
||||
|
||||
if len(cmdStr) != 0 && (len(copySrc) != 0 || len(copyDst) != 0) {
|
||||
log.Fatal("incompatible options -- either cmd (-x) or copy ops but not both")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue