1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:04:40 -07:00

misc/dist: don't ship cmd/cov or cmd/prof

Fixes #3317

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5784083
This commit is contained in:
Brad Fitzpatrick 2012-03-15 15:22:56 -07:00
parent c898c519b0
commit 86c7bc6e8b
2 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,8 @@ const (
)
var preBuildCleanFiles = []string{
"src/cmd/cov",
"src/cmd/prof",
"src/pkg/exp",
"src/pkg/old",
}

View File

@ -1214,6 +1214,8 @@ clean(void)
vinit(&dir);
for(i=0; i<nelem(cleantab); i++) {
if((streq(cleantab[i], "cmd/cov") || streq(cleantab[i], "cmd/prof")) && !isdir(cleantab[i]))
continue;
bpathf(&path, "%s/src/%s", goroot, cleantab[i]);
xreaddir(&dir, bstr(&path));
// Remove generated files.