Re: How to apply patches?

Joachim Schmitz (jojo@unixpc.dus.tandem.com)
Mon, 19 Feb 1996 10:29:22 +0100 (MET)


> [ I've been working on a script to build patches even when the kernel
> source trees contain binary files, but I'm not sure it's quite up to
> scratch yet - if anyone has done something along these lines already,
> I'm interested! Alternatively, if anyone wants a copy of what I've
> done send email... ]
Please do that. I do it with the following script:

#!/bin/sh

(
find linux -follow -name '*~' -print | while read f
do
old=$f
new=`echo $f|cut -d~ -f1`
echo "diff -urN $old $new"
diff -urNs $old $new
done
)| gzip -f -9

This assumes, that I keep backups of the original files by adding a '~'
to their name and if adding new files to create an empty file with the '~'
appended. This way I don't have to keep two source-trees.

-- 
Bye,	Jojo

email: work SCHMITZ_JOACHIM@Tandem.COM home Joachim_Schmitz@D.maus.de