Windows で patch コマンドを利用する

情報が少ないので、参照したWEBページをリンクする。

大まかな流れ

  1. GNU patch を Windows に移植したものをダウンロードする
  2. 展開したフォルダにある patch.exe への PATH を通す
  3. patch コマンドの利用法は次の URL を参照
    Manpage of PATCH

PATH の設定が正しいかどうかを確認する。
今回は patch.exe を C:\patch 以下に配置した。

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\littlebuddha>patch -v
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert

C:\Documents and Settings\littlebuddha>