]> Cypherpunks repositories - gostls13.git/commitdiff
gotry: move into its own directory, separate from gotest.
authorRob Pike <r@golang.org>
Tue, 29 Mar 2011 20:00:24 +0000 (13:00 -0700)
committerRob Pike <r@golang.org>
Tue, 29 Mar 2011 20:00:24 +0000 (13:00 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/4327045

src/cmd/Makefile
src/cmd/gotest/Makefile
src/cmd/gotry/Makefile [new file with mode: 0644]
src/cmd/gotry/gotry [moved from src/cmd/gotest/gotry with 100% similarity]

index fdb33f0702725f715e63b703099939ed9cc136d9..0d18f64feeb86c5974c7d514c6f2ff06c83b2d74 100644 (file)
@@ -19,6 +19,7 @@ DIRS=\
        godefs\
        gopack\
        gotest\
+       gotry\
        nm\
        prof\
        
index 74054e974c9ed8c4312ce624bab5526a7b4cd9ad..9ef0f0c1aaf726b0dc08f73f534d651f4c7f6311 100644 (file)
@@ -9,7 +9,7 @@ TARG=install
 clean:
        @true
 
-install: install-gotest install-gotry
+install: install-gotest
 
 install-%: %
        ! test -f "$(GOBIN)"/$* || chmod u+w "$(GOBIN)"/$*
diff --git a/src/cmd/gotry/Makefile b/src/cmd/gotry/Makefile
new file mode 100644 (file)
index 0000000..6a32bbf
--- /dev/null
@@ -0,0 +1,18 @@
+# Copyright 2010 The Go Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+include ../../Make.inc
+
+TARG=install
+
+clean:
+       @true
+
+install: install-gotry
+
+install-%: %
+       ! test -f "$(GOBIN)"/$* || chmod u+w "$(GOBIN)"/$*
+       sed 's`@@GOROOT@@`$(GOROOT_FINAL)`' $* >"$(GOBIN)"/$*
+       chmod +x "$(GOBIN)"/$*
+
similarity index 100%
rename from src/cmd/gotest/gotry
rename to src/cmd/gotry/gotry