Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(510)

Issue 4172055: code review 4172055: goinstall: handle $(GOOS) and $(GOARCH) in filenames (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by niemeyer
Modified:
14 years ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

goinstall: handle $(GOOS) and $(GOARCH) in filenames This enables goinstall to handle .go and .c files (for cgo) which are named after the following patterns: name_$(GOOS).* name_$(GOARCH).* name_$(GOOS)_$(GOARCH).* Files with those names are only included if the $(GOOS) and $(GOARCH) match the current system.

Patch Set 1 #

Patch Set 2 : diff -r f814f61fdbab https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ab7b18821390 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r ab7b18821390 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 10 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 6e0c3b77928a https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 6e0c3b77928a https://go.googlecode.com/hg/ #

Patch Set 13 : diff -r 66ad99aa592e https://go.googlecode.com/hg/ #

Patch Set 14 : diff -r 66ad99aa592e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -15 lines) Patch
M .hgignore View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/Make.inc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -14 lines 0 comments Download
M src/cmd/goinstall/Makefile View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
M src/cmd/goinstall/parse.go View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +48 lines, -0 lines 0 comments Download
A src/cmd/goinstall/syslist_test.go View 1 2 3 4 11 13 1 chunk +56 lines, -0 lines 0 comments Download
M src/pkg/Makefile View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9
niemeyer
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-03-06 18:36:28 UTC) #1
rsc
R=rsc
14 years ago (2011-03-06 20:06:30 UTC) #2
rsc
looks good http://codereview.appspot.com/4172055/diff/17001/src/Make.cmd File src/Make.cmd (right): http://codereview.appspot.com/4172055/diff/17001/src/Make.cmd#newcode32 src/Make.cmd:32: test.gotest: I'd rather avoid more makefile hackery. ...
14 years ago (2011-03-06 20:57:47 UTC) #3
niemeyer
> I'd rather avoid more makefile hackery. > Can we drop this and put Yes, ...
14 years ago (2011-03-06 22:11:08 UTC) #4
niemeyer
Uploaded again to address conflicts from filepath merge.
14 years ago (2011-03-07 00:06:14 UTC) #5
rsc
LGTM
14 years ago (2011-03-07 14:43:28 UTC) #6
rsc
Tried to apply + submit but it appears that syslist_test.go has been dropped from the ...
14 years ago (2011-03-07 15:31:30 UTC) #7
niemeyer
> Tried to apply + submit but it appears that > syslist_test.go has been dropped ...
14 years ago (2011-03-07 15:46:35 UTC) #8
rsc
14 years ago (2011-03-07 15:54:58 UTC) #9
*** Submitted as b51ad23ee7fb ***

goinstall: handle $(GOOS) and $(GOARCH) in filenames

This enables goinstall to handle .go and .c files (for cgo)
which are named after the following patterns:

    name_$(GOOS).*
    name_$(GOARCH).*
    name_$(GOOS)_$(GOARCH).*

Files with those names are only included if the $(GOOS) and
$(GOARCH) match the current system.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4172055

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b