On Thu, 29 Nov 2001, Jonathan Khoo wrote: > Is this possible? > I modified quite a few files in the kernel and I want to create a single > patch file that can be used to patch other kernels. > > Is the following the correct way to create a patch file? > 1. diff -u a.txt b.txt > patch.txt > 2. patch -p1 a.txt < patch.txt It is, but only for patching a single file. >From "man diff": diff [options] from-file to-file [...] If both from-file and to-file are directories, diff com pares corresponding files in both directories, in alpha betical order; this comparison is not recursive unless the -r or --recursive option is given. diff never compares the actual contents of a directory as if it were a file. You should also read /usr/src/linux/Documentation/SubmittingPatches -- Catalin _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/