Over the past few months, I've been trying to make it as easy as possible for me to apply a patch that people have sent me in email to my kernel quilt tree.

Right now it has gotten a lot better than my old process which went something like:

  • copy email to proper development machine
  • save the email to a file.
  • edit the file
  • pick some name for the file.
  • go into quilt directory
  • import the patch
  • refresh it.

Now my process is pretty close to the above one, but it's almost all automated. It looks like the following:

From mutt I pick the email that I want to apply and hit a key that runs a script. This script tries to sanitize the patch, dumps it into an editor to let me change the description and body of the text as needed, renames the patch, and then applies and refreshes the patch in my quilt tree automatically.

This lets me apply things much faster, and normally I'd be happy. But, something is odd happening with mutt and vim (the editor I use). When editing the file, I get a warning from vim as it starts up that says:

Vim: Warning: Input is not from a terminal

Then when vim is running, I can't use the Enter or BackSpace keys. Due to what I normally edit, this isn't the end of the world, as I can get by without it, but does anyone know how to fix this?

Here's my mutt macro that I'm using to kick this all off with:

macro index H |'/home/greg/linux/x.sh'\n

So, lazyweb, any ideas?

posted Wed, 18 Jan 2006 in [/linux]


   



My Linux Stuff


RSS