mirror of https://github.com/perkeep/perkeep.git
make.go: ignore emacs temp files
Change-Id: I8c909c45f7854440342b620e5b7d6a3c7f62e614
This commit is contained in:
parent
8d0a3b57c4
commit
b97d889f80
5
make.go
5
make.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue