빅

패치 파일 만들어 보기

· 2012-05-10 (목) 16:36:53 · 1983
 패치 파일 만들때 유용한 방법입니다. 
 
[root@linuxtip byoungguk]# vi test.1
-----
aaa
bbb
ccc
-----
[root@linuxtip byoungguk]# cp -pv test.1 test.1-orig
`test.1' -> `test.1-orig'
 
[root@linuxtip byoungguk]# vi test.1
-----
aaa
bbb
ccc
ddd      --->추가
-----
 
[root@linuxtip byoungguk]# diff -urN test.1-orig test.1 > test.1-new.diff
 
[root@linuxtip byoungguk]# vi test.1-new.diff
 
[root@linuxtip byoungguk]# cp -pv test.1-orig test.1
`test.1-orig' -> `test.1'
원래파일로 다시 복사하고
 
[root@linuxtip byoungguk]# patch < test.1-new.diff
patching file test.1
 
패치를 안한 상태로 원복할려면
 
[root@linuxtip byoungguk]# patch < test.1-new.diff -R
patching file test.1
 
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
Linux 12-05-15 조회 1,956
jQuery 12-05-15 조회 3,509
Linux 12-05-14 조회 1,687
Linux 12-05-14 조회 1,802
Linux 12-05-14 조회 1,941
Linux 12-05-14 조회 2,412
Linux 12-05-14 조회 2,145
jQuery 12-05-14 조회 2,473
기타 12-05-13 조회 2,976
jQuery 12-05-12 조회 3,637
PHP 12-05-11 조회 2,080
jQuery 12-05-11 조회 8,632
Linux 12-05-11 조회 2,923
Linux 12-05-11 조회 1,782
Linux 12-05-11 조회 2,351
Linux 12-05-11 조회 2,247
Linux 12-05-11 조회 2,530
Linux 12-05-11 조회 1,701
JavaScript 12-05-10 조회 3,174
Linux 12-05-10 조회 3,470
Linux 12-05-10 조회 1,896
Linux 12-05-10 조회 1,984
Linux 12-05-10 조회 2,377
Linux 12-05-10 조회 4,759
Linux 12-05-10 조회 1,956
Linux 12-05-10 조회 2,138
Linux
[Linux]
12-05-10 조회 2,030
Linux 12-05-10 조회 1,865
Linux 12-05-10 조회 2,361
Linux 12-05-10 조회 3,122