빅

패치 파일 만들어 보기

· 2012-05-10 (목) 16:36:53 · 586
 패치 파일 만들때 유용한 방법입니다. 
 
[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
 
|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
12-06-02 조회 916
12-06-02 조회 1,587
12-06-01 조회 1,368
12-05-25 조회 1,636
12-05-25 조회 808
12-05-21 조회 1,413
12-05-19 조회 878
12-05-18 조회 1,153
12-05-16 조회 1,210
12-05-11 조회 773
12-05-07 조회 916
12-05-05 조회 1,129
12-05-05 조회 1,028
12-05-05 조회 913
12-05-04 조회 1,967
12-05-03 조회 1,089
12-04-30 조회 1,074
12-04-26 조회 2,012
12-04-25 조회 901
12-04-23 조회 1,069
12-04-23 조회 938
12-04-20 조회 2,241
12-04-20 조회 1,167
12-04-18 조회 869
12-04-17 조회 1,504