diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 00:22:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 00:29:51 -0500 |
| commit | 05653e8195865d70f6255ff7aeae6eb276197092 (patch) | |
| tree | 55c22c00339533254f6709eb137c122fa600dc69 /main.go | |
| parent | b7c2f78414f1b7113d4f760b81b51d7b6758ea35 (diff) | |
add mtime checks like 'make' for smarter automation
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -77,8 +77,8 @@ func doProto(argvProto string) error { me.sh.GoodExit("doClean() ran") } - if argv.Ctime { - doCtime(pf.Filebase) + if argv.Mtime { + doMtime(pf.Filebase) me.sh.GoodExit("doClean() ran") } @@ -100,9 +100,8 @@ func doProto(argvProto string) error { os.Setenv("PROTOBUF_REGRET", "true") } - if doCtime(pf.Filebase) { - log.Info("nothing changed. exit here") - me.sh.GoodExit("doCtime() ran") + if doMtime(pf.Filebase) { + me.sh.GoodExit(pf.Filename + " did not change") } else { log.Info("ctime check: need to re-run autogenpb") } |
