Differences between revisions 4 and 7 (spanning 3 versions)
Revision 4 as of 2008-06-22 21:56:15
Size: 1072
Editor: 218
Comment:
Revision 7 as of 2012-09-28 08:45:09
Size: 1076
Editor: 182
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 * [http://coffeenix.net/doc/misc/patch.html 패치파일 만드는 법과 적용하는 법]  * [[http://coffeenix.net/doc/misc/patch.html|패치파일 만드는 법과 적용하는 법]]
Line 17: Line 17:
diff -uNr xchat-1.0 xchat-1.0-orig > xchat-1.0.patch diff -uNr xchat-1.0-orig xchat-1.0 > xchat-1.0.patch
Line 26: Line 26:
를 수행한다. 이 때, 다른 곳이 [Win32]등의 환경일 때는 VimEditor 에서 :set fileformat=dos 로 diff 파일의 파일포맷을 변경해준다. 를 수행한다. 이 때, 다른 곳이 [[Win32]]등의 환경일 때는 VimEditor 에서 :set fileformat=dos 로 diff 파일의 파일포맷을 변경해준다.

각종 문서파일의 차이점들을 diff 프로그램을 이용하여, .diff 혹은 .patch 파일로 만든다. 이를 적용할 때 쓰는 프로그램이 Patch 이다.

관련정보

원본 프로젝트 소스와 나의 수정본을 병행 관리해야할 필요가 있을 때 작업 후 프로젝트 최 상위 경로에서,

svn diff > mychange_r111.diff

로 diff 파일 따로 관리 (언제 만든 diff 인지 알기 위해 리비전을 꼭 붙인다.)

혹은, diff 명령으로 직접 디렉토리 사이를 볼때는

diff -uNr xchat-1.0-orig xchat-1.0 > xchat-1.0.patch

이후에, 다른 곳에 나의 수정본을 반영하고 싶을 때, 위 diff 를 새 버전에 맞게 새로 만든 뒤,

patch -p0 < mychange_r111.diff

를 수행한다. 이 때, 다른 곳이 Win32등의 환경일 때는 VimEditor 에서 :set fileformat=dos 로 diff 파일의 파일포맷을 변경해준다.


CategoryProgram

Patch (last edited 2012-09-28 08:45:09 by 182)

web biohackers.net