1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06:00

misc/dashboard/builder: handle Plan 9 in defaultSuffix()

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9495045
This commit is contained in:
Shenghou Ma 2013-05-21 03:22:52 +08:00
parent b419e2b57c
commit 523b3bc434

View File

@ -608,10 +608,14 @@ func repoURL(importPath string) string {
// defaultSuffix returns file extension used for command files in
// current os environment.
func defaultSuffix() string {
if runtime.GOOS == "windows" {
switch runtime.GOOS {
case "windows":
return ".bat"
case "plan9":
return ".rc"
default:
return ".bash"
}
return ".bash"
}
// defaultBuildRoot returns default buildroot directory.