빅

패치 파일 만들어 보기

· 2012-05-10 (목) 16:36:53 · 1972
 패치 파일 만들때 유용한 방법입니다. 
 
[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,951
jQuery 12-05-15 조회 3,503
Linux 12-05-14 조회 1,681
Linux 12-05-14 조회 1,794
Linux 12-05-14 조회 1,935
Linux 12-05-14 조회 2,402
Linux 12-05-14 조회 2,139
jQuery 12-05-14 조회 2,469
기타 12-05-13 조회 2,973
jQuery 12-05-12 조회 3,626
PHP 12-05-11 조회 2,072
jQuery 12-05-11 조회 8,625
Linux 12-05-11 조회 2,918
Linux 12-05-11 조회 1,773
Linux 12-05-11 조회 2,343
Linux 12-05-11 조회 2,241
Linux 12-05-11 조회 2,521
Linux 12-05-11 조회 1,692
JavaScript 12-05-10 조회 3,166
Linux 12-05-10 조회 3,461
Linux 12-05-10 조회 1,886
Linux 12-05-10 조회 1,973
Linux 12-05-10 조회 2,366
Linux 12-05-10 조회 4,748
Linux 12-05-10 조회 1,949
Linux 12-05-10 조회 2,132
Linux
[Linux]
12-05-10 조회 2,024
Linux 12-05-10 조회 1,860
Linux 12-05-10 조회 2,353
Linux 12-05-10 조회 3,114