>скажите, как пользоваться патчами. например есть файл filename_prog.diff к некоторой программе. что(и
>как)с ним нужно делать и есть ли какие-нибудь унифицированные приёмы?
Samoj prostei6ij varinat:
[test@test diff]# ls
test1 test2
[test@test diff]# cat test1
test
test2
test3
[test@test diff]# cat test2
test
test1
test2
test3
[test@test diff]# diff -p test1 test2
*** test1 2004-10-20 09:26:42.000000000 +0300
--- test2 2004-10-20 09:14:42.000000000 +0300
***************
*** 1,3 ****
--- 1,4 ----
test
+ test1
test2
test3
[test@test diff]# diff -p test1 test2 > test.diff
[test@test diff]# cat test.diff
*** test1 2004-10-20 09:26:42.000000000 +0300
--- test2 2004-10-20 09:14:42.000000000 +0300
***************
*** 1,3 ****
--- 1,4 ----
test
+ test1
test2
test3
[test@test diff]# patch < test.diff
patching file test1
[test@test diff]# cat test1
test
test1
test2
test3
[test@test diff]# cat test2
test
test1
test2
test3
[test@test diff]#
P.S. man diff; man patch. P.S. Esli re4 idet o nalozenii konkretnogo patcha, to s nim vsegda idet objasnenije togo dla 4ego on nuzen i kak ego pravilno ispolzovat (kakije klu4i i t.d.).