m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: If make check fails


From: Gary V. Vaughan
Subject: Re: If make check fails
Date: Mon, 3 Sep 2001 01:39:18 +0100
User-agent: Mutt/1.3.21i

On Tue, Aug 28, 2001 at 11:20:16AM +0200, Akim Demaille wrote:
> >>>>> "Gary" == Gary V Vaughan <address@hidden> writes:
> 
> There is something else I'm dreaming of: a means to embed some
> commands, or a means to hook commands to patches.  Most typically, I
> work my patches at home, bring them on a floppy (sometimes I forget to
> remove the dirname when I post the patches :) and then apply them on
> CVS.
> 
> But I often forget cvs add/rm.  I'd like to be able to write/hook
> those commands when writing the patch, and forget about those details
> when applying them.
> 
> Currently, I run this script
>
< [[snip]]

This inspired me to polish up my patch generator script (attached),
and add some nice features.  I converted it to use your ordinal patch
numbering rather than my date based patch names (which only work if
you commit no more than 1 patch per day).

My .cvsappyrc in the m4 toplevel directory looks like this:

   -z3 -m 'M4 Patches <address@hidden>' -c -i .patch_number
   
So when I am ready, `cvsapply -r -p patch-name [file list ...]'
will generate a patch against the repository, commit changes back to
the repository, and mail a copy of the patch to m4-patches.  Certainly
saves a few minutes of manual file shuffling and email processing for
each patch :-)

Alexandre, if you want it, I'd be happy to contribute this script to
cvs-utils.  The call to mutt at the end is a bit of a wart, but I know
of no better way to add mime attachments from the command line
(patches in the body of a mail seem to get mangled).

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/

Attachment: cvsapply
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]