diff --git a/src/cmd/prof/pprof b/misc/pprof similarity index 100% rename from src/cmd/prof/pprof rename to misc/pprof diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index 72097230a11..e115e3c322f 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -283,6 +283,15 @@ static char *oldtool[] = { "quietgcc", }; +// Unreleased directories (relative to $GOROOT) that should +// not be in release branches. +static char *unreleased[] = { + "src/cmd/cov", + "src/cmd/prof", + "src/pkg/old", + "src/pkg/exp", +}; + // setup sets up the tree for the initial build. static void setup(void) @@ -347,6 +356,13 @@ setup(void) } } + // For release, make sure excluded things are excluded. + if(hasprefix(goversion, "release.") || hasprefix(goversion, "go.")) { + for(i=0; i 1) + xprintf("skipping %s - does not exist\n", dir); + goto out; + } + // set up gcc command line on first run. if(gccargs.len == 0) { xgetenv(&b, "CC"); @@ -549,10 +583,6 @@ install(char *dir) vadd(&gccargs, proto_gccargs[i]); } - // path = full path to dir. - bpathf(&path, "%s/src/%s", goroot, dir); - name = lastelem(dir); - islib = hasprefix(dir, "lib") || streq(dir, "cmd/cc") || streq(dir, "cmd/gc"); ispkg = hasprefix(dir, "pkg"); isgo = ispkg || streq(dir, "cmd/go") || streq(dir, "cmd/cgo"); @@ -1030,6 +1060,8 @@ static char *buildorder[] = { "lib9", "libbio", "libmach", + + "misc/pprof", "cmd/cov", "cmd/nm",