This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Welcome to sources.redhat.com
- From: Gary Thomas <gary at chez-thomas dot org>
- To: Jonathan Larmour <jifl at ecoscentric dot com>
- Cc: eCos Maintainers <ecos-maintainers at sources dot redhat dot com>,eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 06 Aug 2002 13:41:36 -0600
- Subject: Re: Welcome to sources.redhat.com
- References: <20020806155646.18120.qmail@sources.redhat.com> <3D501063.6020204@ecoscentric.com> <20020806185528.GE4434@biferten.ma.tech.ascom.ch> <3D5020BA.7020804@ecoscentric.com><1028661879.17057.133.camel@hermes.chez-thomas.org> <3D502478.3060807@ecoscentric.com>
On Tue, 2002-08-06 at 13:33, Jonathan Larmour wrote:
> Gary Thomas wrote:
> > On Tue, 2002-08-06 at 13:17, Jonathan Larmour wrote:
> >
> >
> >>Gary takes the former approach I believe, although perhaps he has emacs
> >>macros or something to help him which might be why.
> >>
> >>Commit log messages are also important as they are what people see in the
> >>ecos-cvs list, which I certainly read, and I'm pretty sure Gary does too.
> >>Yeah, what fun lives we lead ;).
> >
> >
> > I *do* have emacs macros which help with this.
>
> Okay, can you indulge me with a peek? :-).
>
Here's what I have in my .emacs file:
(require 'add-log)
(global-set-key "\C-x4a" 'add-change-log-entry)
;; (defun user-mail-address () "gthomas@redhat.com")
(defun user-mail-address () "gary@chez-thomas.org")
(defun user-full-name () "Gary Thomas")
Then, to make a ChangeLog entry, I just go to the file/function where
the change was made, type ^X-4-a and it finds the appropriate ChangeLog
file, makes the basic entry and I just fill in the details.
What I normally do is to run a script to see what I've changed
(cvs-patch), then run another script which runs emacs on all of the
changed files so I can update the ChangeLog (do_ChangeLogs). Then run
the (cvs-patch) script one more time and commit.
#! /bin/sh
#cvs -q diff $* | FixPatch | tee /work/diffs
#cvs -q diff $* | FixPatch | no_srec >/work/diffs
cvs -q diff $* | no_srec >/work/diffs
#! /bin/sh
#grep Index $1 | sed -e "s/Index: //" | xargs -n1 xemacs $1
grep Index: /work/diffs | grep -v "%redact" | grep -v ChangeLog | grep -v .Sanitize | sed -e "s/Index: //" | xargs -n1 ${CVSEDITOR} /work/diffs