move index to src

This commit is contained in:
Mark McGranaghan 2012-10-01 09:07:04 -07:00
parent 9a3987c96a
commit 3fb7c1ab0f
2 changed files with 6 additions and 4 deletions

View File

@ -29,13 +29,15 @@ func main() {
}
baseTrimmer, _ := regexp.Compile("^[0-9x]+-")
for _, fi := range fileInfos {
baseName := baseTrimmer.ReplaceAllString(fi.Name(), "")
sourceNames = append(sourceNames, baseName)
sourceMap[baseName] = fi.Name()
if fi.Name() != "index.txt" {
baseName := baseTrimmer.ReplaceAllString(fi.Name(), "")
sourceNames = append(sourceNames, baseName)
sourceMap[baseName] = fi.Name()
}
}
// read names from index
indexBytes, idxErr := ioutil.ReadFile("tool/index.txt")
indexBytes, idxErr := ioutil.ReadFile("src/index.txt")
if idxErr != nil {
panic(idxErr)
}