]> Cypherpunks.ru repositories - goredo.git/blobdiff - usage.go
Ability to rely on mtime, instead of ctime
[goredo.git] / usage.go
index 58b182bbd1d68cc815e2f961e79167ac0164543f..67fded856d1ad7bbe1c3a1227ef742af079c1186 100644 (file)
--- a/usage.go
+++ b/usage.go
@@ -24,7 +24,7 @@ import (
 )
 
 const (
-       Version  = "1.9.0"
+       Version  = "1.21.0"
        Warranty = `Copyright (C) 2020-2021 Sergey Matveev
 
 This program is free software: you can redistribute it and/or modify
@@ -67,11 +67,13 @@ Always build current target. Unusable outside .do.`
 Remove either all goredo's related temporary files, or kept stderr
 logs, or everything (including .redo directories) related.`
        case CmdNameRedoLog:
-               d = `Usage: redo-log target [ | tai64nlocal ]
+               d = `Usage: redo-log [-c] [-r] target [ | tai64nlocal ]
 
 Display kept target's stderr with TAI64N timestamped lines. Only the
 last build is kept. You must enable stderr keeping with either -logs,
-or REDO_LOGS=1.`
+or REDO_LOGS=1. -c option show the exact command invoked, start and
+finish time. -r option recursively and linearly show also all deeper
+redo calls and their logs.`
        case CmdNameRedoDot:
                d = `Usage: redo-dot target [...]
 
@@ -121,8 +123,10 @@ Additional environment variables:
        if cmd == CmdNameRedo || cmd == CmdNameRedoIfchange {
                fmt.Fprintln(os.Stderr, `
   REDO_NO_SYNC -- disable files/directories explicit filesystem syncing
-  REDO_INODE_NO_TRUST -- do not trust inode information (except for size)
-                         and always check file's hash
+  REDO_INODE_TRUST -- {none,ctime,mtime}, either do not trust inode
+                      information at all (always check size and hash), or
+                      trust its ctime (the default one), or be satisfied
+                      with its mtime
   REDO_MAKE -- bmake/gmake/none(default) jobserver protocol compatibility`)
        }
 }