make.go: ignore emacs temp files

Change-Id: I8c909c45f7854440342b620e5b7d6a3c7f62e614
This commit is contained in:
Brad Fitzpatrick 2013-06-12 04:35:27 -07:00
parent 8d0a3b57c4
commit b97d889f80
1 changed files with 4 additions and 1 deletions

View File

@ -205,7 +205,10 @@ func mirrorDir(src, dst string) error {
return filepath.SkipDir
}
}
if strings.HasSuffix(base, "_test.go") || !strings.HasSuffix(base, ".go") {
switch {
case strings.HasSuffix(base, "_test.go"),
strings.HasPrefix(base, ".#"),
!strings.HasSuffix(base, ".go"):
return nil
}
suffix, err := filepath.Rel(src, path)