Q. パッチの当て方は。
A. パッチの最初の 2 行には、相対ディレクトリを含むファイル名が次のよう
に 2 行目の '+++' の後ろに書いてあります。
+++ test/prog.c Sat Jan 24 04:13:36 1998
パッチを当てたいファイルがそのファイル名の位置にあるようなディレクトリ
にパッチ (ここでは patch.txt) をコピーします。
このディレクトリで以下を実行します。
% patch < patch.txt
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- test.org/prog.c Sat Jan 24 04:12:35 1998
|+++ test/prog.c Sat Jan 24 04:13:36 1998
--------------------------
Patching file prog.c using Plan A...
Hunk #1 succeeded at 3.
done
グループ名: patch