Okay,

So as you may have noticed, I've started playing with Andrew Morton's Patch Scripts. They are pretty neat. I can see how somone would use it with CVS or BK, but it really kinda serves some of the functions of those as well.

Greg, I re-submitted my latest 3 patches. I believe they're good to go.

Greg, as promised here's some basic info. I have NOT even STARTED to become "good" with these yet... but here's some basics:

GETTING UP AND RUNNING (short version):
1. Install into /usr/local/patch-scripts

   Andrew suggests /usr/lib/ but that seemd wrong to me.

2. Add:
     export PATCHSCRIPTS=/home/phil/build/kernel
     export [EMAIL PROTECTED]
   to your bash_profile and add
     /usr/local/patch-scripts
   to your PATH

3. Make dirs:
     mkdir -p /home/phil/build/kernel/{pc,patches,txt}

   Replace "/home/phil/build/kernel" with wherever you want... though I
   recommend it be ther directory where you keep your kernel trees.


ADDING YOUR PATCHES
I originally used "import_patch" for this. This will work, but I had a few issues, and upon further reading it appears that important patch is for patches generated with andrews scripts. If you choose to use import_patch for non-andrew-script-generated-patches, then the procedure would be:
For each patch:
1. import_patch mypatches/somepatch.patch
1a. If it referenced some bla.orig file, remove this from the pc file
2. modify txt/somepatch.txt
2. cd linux
3. pushpatch ; refpatch ; popatch
4. Optionally Remove from series file

The "right" way to do it is just copy the file to patches/whatever.patch
and then run "pcpatch" to generate the pc file, and then write the txt file.

And a few basic commands:
fpatch - start a new patch (pass patch name and filename to add to patch), OR add a new file to a patch (just pass new filename)
refpatch - regenerate patch
poppatch - remove patch at top of series file
pushpatch - add patch at top of series file
patch-bomb <email addresss> <patches> - emails patches... also appears to CC anyone in the txt file, annoyingly (since the docs says it only CC's people if it finds them on the 4th line of the txt file in a "From: name name <email>" format.
export_patch <directory> - export patches from series file to directory


-- Phil Dibowitz [EMAIL PROTECTED] Freeware and Technical Pages Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
 - Benjamin Franklin, 1759


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to