X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=usage.go;h=a64c375fbd2a4719b01871504ff1c688e48657e6;hb=HEAD;hp=7de522f6c0aca1855cba15b7f9ae82ab41dc2ecc;hpb=4274dce3366cee45bfaccbe5ca340ce6efe68e00;p=goredo.git diff --git a/usage.go b/usage.go index 7de522f..a64c375 100644 --- a/usage.go +++ b/usage.go @@ -1,19 +1,17 @@ -/* -goredo -- djb's redo implementation on pure Go -Copyright (C) 2020-2021 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 -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// goredo -- djb's redo implementation on pure Go +// Copyright (C) 2020-2024 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 +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package main @@ -24,8 +22,8 @@ import ( ) const ( - Version = "1.19.0" - Warranty = `Copyright (C) 2020-2021 Sergey Matveev + Version = "2.6.2" + Warranty = `Copyright (C) 2020-2024 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 +60,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 +103,28 @@ 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 CmdNameRedoDep2Rec: + d = `Usage: redo-dep2rec .../.redo/file.dep + +Convert binary .dep file to recfile and write it to stdout.` + case CmdNameRedoDepFix: + d = `Usage: redo-depfix + +Traverse over all .redo directories beneath and recalculate each target's +inode and hash information, rewriting dependency files. If dependency has +legacy .rec format, then it will be converted to .dep one.` + case CmdNameRedoInode: + d = `Usage: redo-inode target [...] + +Just calculate inode information about each target and print in recfile format.` 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-dep2rec, redo-depfix, redo-dot, redo-ifchange, redo-ifcreate, +redo-inode, 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 +136,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`) } }