summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 00:22:37 -0500
committerJeff Carr <[email protected]>2025-10-15 00:29:51 -0500
commit05653e8195865d70f6255ff7aeae6eb276197092 (patch)
tree55c22c00339533254f6709eb137c122fa600dc69 /main.go
parentb7c2f78414f1b7113d4f760b81b51d7b6758ea35 (diff)
add mtime checks like 'make' for smarter automation
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.go b/main.go
index 8f97dd8..485be83 100644
--- a/main.go
+++ b/main.go
@@ -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")
}