mirror of https://github.com/perkeep/perkeep.git
Mark closure's z_data.go as wanted, so it's not deleted.
This commit is contained in:
parent
eaca89f8ab
commit
cca2466547
10
make.go
10
make.go
|
@ -110,8 +110,6 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
deleteUnwantedOldMirrorFiles(buildSrcPath)
|
||||
|
||||
closureEmbed := filepath.Join(buildSrcPath, "server", "camlistored", "ui", "closure", "z_data.go")
|
||||
if *embedResources {
|
||||
closureSrcDir := filepath.Join(camRoot, "third_party", "closure", "lib")
|
||||
|
@ -119,12 +117,11 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
} else {
|
||||
if err := os.RemoveAll(closureEmbed); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
wantDestFile[closureEmbed] = true
|
||||
}
|
||||
|
||||
deleteUnwantedOldMirrorFiles(buildSrcPath)
|
||||
|
||||
tags := ""
|
||||
if sql && *wantSQLite {
|
||||
tags = "with_sqlite"
|
||||
|
@ -298,6 +295,7 @@ func deleteUnwantedOldMirrorFiles(dir string) {
|
|||
return nil
|
||||
}
|
||||
if !wantDestFile[path] {
|
||||
log.Printf("Deleting old file from temp build dir: %s", path)
|
||||
return os.Remove(path)
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue