X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=blobdiff_plain;f=usage.go;h=e67077fdfd40c6a8c5bab6e376ed9301c92fd17f;hp=f438426ef90f6dfc578a7745aa37f7988ae63a3d;hb=b4eefdd675c9aef9ff8bd1089d031ee05733195b;hpb=368922086630cdcf1980d372006eb4bf6b459d5a diff --git a/usage.go b/usage.go index f438426..e67077f 100644 --- a/usage.go +++ b/usage.go @@ -1,6 +1,6 @@ /* goredo -- djb's redo implementation on pure Go -Copyright (C) 2020-2021 Sergey Matveev +Copyright (C) 2020-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,8 +24,8 @@ import ( ) const ( - Version = "1.10.0" - Warranty = `Copyright (C) 2020-2021 Sergey Matveev + Version = "1.30.0" + Warranty = `Copyright (C) 2020-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,10 +62,10 @@ Record ifcreate dependency for current target. Unusable outside .do.` Always build current target. Unusable outside .do.` case CmdNameRedoCleanup: - d = `Usage: redo-cleanup [-n] {full,log,tmp} [...] + d = `Usage: redo-cleanup [-n] {full,log,lock,tmp} [...] -Remove either all goredo's related temporary files, or kept stderr -logs, or everything (including .redo directories) related.` +Remove either all of goredo's related temporary files, or kept stderr +logs, or lock files, or everything (including .redo directories) related.` case CmdNameRedoLog: d = `Usage: redo-log [-c] [-r] target [ | tai64nlocal ] @@ -105,13 +105,18 @@ List all currently known out-of-date targets.` d = `Usage: redo-affects target [...] List all targets that will be affected by changing the specified ones.` + case CmdNameRedoDepFix: + d = `Usage: redo-depfix + +Traverse over all .redo directories beneath and check if inode's information +(ctime/mtime) differs. Update dependency if file's content is still the same.` default: d = `Usage: goredo -symlinks goredo expects to be called through the symbolic link to it. Available commands: redo, redo-affects, redo-always, redo-cleanup, -redo-dot, redo-ifchange, redo-ifcreate, redo-log, redo-ood, -redo-sources, redo-stamp, redo-targets, redo-whichdo.` +redo-depfix, redo-dot, redo-ifchange, redo-ifcreate, redo-log, +redo-ood, redo-sources, redo-stamp, redo-targets, redo-whichdo.` } fmt.Fprintf(os.Stderr, "%s\n\nCommon options:\n", d) flag.PrintDefaults() @@ -123,8 +128,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`) } }