diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/clectio-gen/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/clectio-gen/main.go b/cmd/clectio-gen/main.go index 167ed53..9a2930d 100644 --- a/cmd/clectio-gen/main.go +++ b/cmd/clectio-gen/main.go @@ -96,6 +96,11 @@ func main() { fmt.Fprintln(os.Stderr, "usage: clectio-gen <new|old> <startYear> <endYear> <outdir>") os.Exit(2) } + // Hermetic: point config at a nonexistent path so the generator always uses + // lectio's EMBEDDED calendar, lectionary and book table -- never the running + // user's ~/.config/lectio (whose books.ini/calendars/etc. could be stale and + // would silently change or drop readings). + os.Setenv("LECTIO_CONFIG", filepath.Join(os.TempDir(), "clectio-gen-no-such-dir", "config.ini")) form := os.Args[1] // "new" (OF) or "old" (EF) lect := "new" tag := "of" @@ -170,6 +175,9 @@ func main() { } if id := internReading(secEN, secLA); id >= 0 { rids = append(rids, id) + } else { + fmt.Fprintf(os.Stderr, "clectio-gen: %s DROP part=%s ref=%q cite=%q\n", + ds, secEN.PartID, resolveRef(secEN, form), secEN.Citation) } } dy := day{ |
