closure: ignore emacs temp files in gendeps

Change-Id: I634d46f2f55673eb81dcc8532bdc2ba4fc294c5f
This commit is contained in:
Brad Fitzpatrick 2014-04-05 19:13:58 -07:00
parent 12196cd638
commit bf708b005d
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ func GenDepsWithPath(pathPrefix string, root http.FileSystem) ([]byte, error) {
if !strings.HasSuffix(name, ".js") {
continue
}
if strings.HasPrefix(name, ".#") {
// Emacs noise.
continue
}
f, err := root.Open(name)
if err != nil {
return nil, fmt.Errorf("Could not open %v: %v", name, err)