You are not logged in.
Pages: 1
hello
does anyone know where i can find some tutorials on how to make patches.
i am making some packages and it is necessary sometimes to know.
cheers
PS
i know nothing of C and C++
Offline
need a patch to fix google on your machine :-P ?
some links
Offline
diff -u old_source.c new_source.c > lala.patch
or if you want recursive
diff -u -r old_dir/ old_dir/ > lala.patch
Last edited by wonder (2008-06-20 18:06:15)
Give what you have. To someone, it may be better than you dare to think.
Offline
This will create a patch of the differences between file1 and file2
diff -ruN file1 file2 > file.patch
This will patch file1 to be like file2
patch -Np0 < file.patch
Last edited by timetrap (2008-06-20 20:55:25)
Offline
Lately I have been using git for creating patches since it saves me from having to copy the files around.
$ git init
$ git add *.c *.h
$ git commit -m initial
edit files
$ git diff > file.patch
Offline
Pages: 1