RCSCLEAN(1) RCSCLEAN(1) 名称 rcsclean - ワークファイルの後片付け 書式 rcsclean [options] [ file ... ] 解説 rcsclean は、RCS ファイルからチェックアウトされた後に変更を受けていない ワークファイルを削除します。 rcsclean -u は、対象となるワークファイルの ロックを解除し、削除します。 各 file について rcsclean は、ワークファイルとそれに対応する RCS ファイ ルに格納されているリビジョンとを比較します。違いが見つかった場合には 何 も しません。違いが無い場合、 -u オプションが指定されていたら、まずその リビジョンのロックを解除します。そして、ワークファイルが書き込み可能 で な くそのリビジョンがロックされていないなら、ワークファイルを消去します 。 rcsclean は、実行した処理の内容を rcs -u や rm -f コマンドを使って表 現し、標準出力に表示します。 file を指定しなかった場合、カレントディレクトリにあるすべてのワークファ イルを処理対象にします。 RCS の拡張子を持つパス名は、RCS ファイルを表し て います。その他のファイルはワークファイルを意味します。ファイル名につ いては、 ci(1) で詳しく説明されています。 ワークファイルと比較するリビジョン番号は、 -n, -q, -r, -u オプション の い ずれかで指定することができます。リビジョン番号を指定せず、 -u オプシ ョンが指定されていて、呼び出したユーザがロックしたリビジョンが一つだ け 存 在すれば、 rcsclean はそのリビジョンを使用します。それ以外の場合には 、 rcsclean はデフォルト枝 (普通は幹) の最新リビジョンを使用します。 rcsclean を Makefile の中の clean ターゲットで用いると便利です。 rcsd- iff(1) (差分の表示) や、 ci(1) (ワークファイルに変更が無い時、チェック インするかどうか確認する) のマニュアルも参照して下さい。 オプション -ksubst 比較のためにリビジョンを取り出すときに、 subst で指定した方式 で キーワード置換を行います。詳しくは co(1) を参照して下さい。 -n[rev] ファイルの消去やリビジョンのロック解除を行ないません。このオプシ ョンによって、 rcsclean が何を実行しようとするかを、実際の動作を 行なわずに知ることができます。 -q[rev] 処理の内容を標準出力に表示しません。 -r[rev] 比較対象のリビジョンの指定のみを行い、他には何の効果も与えません 。 -T RCS ファイルがロックの解除により変更された場合でも、 RCS ファ イ ルの変更時刻を保存します。このオプションを使うことにより、RCS フ ァイルの中のワークファイルのコピーによって生ずる make(1) の依 存 関係に伴う必要以上の再コンパイルを防ぐことができます。このオプシ ョンを使用する際には注意が必要です。本当に再コンパイルが必要な場 合にも再コンパイルされない場合が生じます。つまり、ロックの解除に より他のワークファイル中のキーワードの変更を意味する場合があるか らです。 -u[rev] 違いが見つからなかったファイルがロックされているなら、ロックを解 除します。 -V RCS システムのバージョン番号を表示します。 -Vn RCS システムのバージョン n のエミュレーションを行います。詳細 は co(1) を参照してください。 -xsuffixes suffixes を RCS ファイル拡張子として指定します。詳細は ci(1) を 参照してください。 -zzone キーワードの置換の際、タイムゾーンとして zone を使用します。詳細 は co(1) を参照して下さい。 使用例 rcsclean *.c *.h チ ェックアウトされてから変更されていない .c や .h で終る名前のワークフ ァイルをすべて削除します。 rcsclean チェックアウトされてから変更されていない、カレントディレクトリにある す べてのワークファイルを削除します。 関連ファイル rcsclean は、 ci(1) と同じファイルにアクセスします。 環境変数 RCSINIT 引数リストに前置されるオプションを空白で区切って指定します。オプ ションの中に含まれる空白は、バックスラッシュでエスケープします。 RCSINIT オプションは、大部分の RCS コマンドの引数リストに前置さ れます。 -q, -V, -x, -z などを指定するのに有用です。 診断 すべての動作が成功した時にのみ、終了ステータス 0 を返します。ワークファ イルや RCS ファイルがなくても無視します。 作者 Author: Walter F. Tichy. Manual Page Revision: 1.5; Release Date: 1999/08/27. Copyright © 1982, 1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991, 1992, 1993 Paul Eggert. 関連項目 ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1), rcsfile(5) Walter F. Tichy, RCS--A System for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654. バグ デ ィレクトリ参照操作を持たない古いバージョンの UNIX では、少なくとも一 つの file を指定しなければなりません。 GNU 1999/08/27 RCSCLEAN(1)
RCSCLEAN(1) RCSCLEAN(1) NAME rcsclean - clean up working files SYNOPSIS rcsclean [options] [ file ... ] DESCRIPTION rcsclean removes files that are not being worked on. rcsclean -u also unlocks and removes files that are being worked on but have not changed. For each file given, rcsclean compares the working file and a revision in the corresponding RCS file. If it finds a difference, it does noth- ing. Otherwise, it first unlocks the revision if the -u option is given, and then removes the working file unless the working file is writable and the revision is locked. It logs its actions by outputting the corresponding rcs -u and rm -f commands on the standard output. Files are paired as explained in ci(1). If no file is given, all work- ing files in the current directory are cleaned. Pathnames matching an RCS suffix denote RCS files; all others denote working files. The number of the revision to which the working file is compared may be attached to any of the options -n, -q, -r, or -u. If no revision num- ber is specified, then if the -u option is given and the caller has one revision locked, rcsclean uses that revision; otherwise rcsclean uses the latest revision on the default branch, normally the root. rcsclean is useful for clean targets in makefiles. See also rcsd- iff(1), which prints out the differences, and ci(1), which normally reverts to the previous revision if a file was not changed. OPTIONS -ksubst Use subst style keyword substitution when retrieving the revi- sion for comparison. See co(1) for details. -n[rev] Do not actually remove any files or unlock any revisions. Using this option will tell you what rcsclean would do without actu- ally doing it. -q[rev] Do not log the actions taken on standard output. -r[rev] This option has no effect other than specifying the revision for comparison. -T Preserve the modification time on the RCS file even if the RCS file changes because a lock is removed. This option can sup- press extensive recompilation caused by a make(1) dependency of some other copy of the working file on the RCS file. Use this option with care; it can suppress recompilation even when it is needed, i.e. when the lock removal would mean a change to key- word strings in the other working file. -u[rev] Unlock the revision if it is locked and no difference is found. -V Print RCS’s version number. -Vn Emulate RCS version n. See co(1) for details. -xsuffixes Use suffixes to characterize RCS files. See ci(1) for details. -zzone Use zone as the time zone for keyword substitution; see co(1) for details. EXAMPLES rcsclean *.c *.h removes all working files ending in .c or .h that were not changed since their checkout. rcsclean removes all working files in the current directory that were not changed since their checkout. FILES rcsclean accesses files much as ci(1) does. ENVIRONMENT RCSINIT options prepended to the argument list, separated by spaces. A backslash escapes spaces within an option. The RCSINIT options are prepended to the argument lists of most RCS commands. Use- ful RCSINIT options include -q, -V, -x, and -z. DIAGNOSTICS The exit status is zero if and only if all operations were successful. Missing working files and RCS files are silently ignored. IDENTIFICATION Author: Walter F. Tichy. Manual Page Revision: 1.12; Release Date: 1993/11/03. Copyright © 1982, 1988, 1989 Walter F. Tichy. Copyright © 1990, 1991, 1992, 1993 Paul Eggert. SEE ALSO ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1), rcsfile(5) Walter F. Tichy, RCS--A System for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654. BUGS At least one file must be given in older Unix versions that do not pro- vide the needed directory scanning operations. GNU 1993/11/03 RCSCLEAN(1)
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa