Check-in by ben on 2025-11-12 04:37:56
If work directory already exists, go ahead and re-generate the
timeline and tags. This way coprolit.awk can be run repeatedly
for updates.
INSERTED DELETED
0 8 coprolit.awk
0 8 TOTAL over 1 changed file
Index: coprolit.awk
==================================================================
--- coprolit.awk
+++ coprolit.awk
@@ -341,14 +341,10 @@
function generate_tag_timeline(tag, author, authors, cmd,
comment_abbrev, commit, commits, date, dates, fsout, i, label,
line, lines, m, out, refs, sel, time, total_commits)
{
out = sprintf("%s/tags/%s/gophermap", _work, tag)
- if (exists(out)) {
- # This has already been generated, don't do again.
- return
- }
_download_count = 0
_download_max = _download
mkdir(_work "/tags/" tag)
@@ -573,14 +569,10 @@
} else {
_download_max = _download
branch_opt = ""
out = sprintf("%s/timeline/gophermap", _work)
}
- if (exists(out)) {
- # This has already been generated, don't do again.
- return
- }
if (length(branch) > 0) {
mkdir(_work "/timeline/" branch)
} else {
mkdir(_work "/timeline")