cmd/dist: fix superfluous and confusing "binaries ... to be copied or moved" message

Also, to aid debugging cmd/dist, make make.bat support --dist-tool flag.

Fixes #3100.

R=alex.brainman
CC=golang-dev
https://golang.org/cl/6637061
This commit is contained in:
Shenghou Ma 2012-10-12 13:35:05 +08:00
parent e171b97ee6
commit 19dc7bb18f
6 changed files with 61 additions and 1 deletions

7
src/cmd/dist/unix.c vendored
View file

@ -727,5 +727,12 @@ xstrrchr(char *p, int c)
return strrchr(p, c);
}
// xsamefile returns whether f1 and f2 are the same file (or dir)
int
xsamefile(char *f1, char *f2)
{
return streq(f1, f2); // suffice for now
}
#endif // PLAN9
#endif // __WINDOWS__