KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents
Revision 2 as of 2010-06-11 12:16:34
KernelNewbies:
  • NicolasKaiser

My name is Nicolas Kaiser. I hail from Kitzbühel, Austria.

I greatly enjoy proofreading. In regard to the Linux kernel, I'm a fan of [http://coccinelle.lip6.fr/ Coccinelle].

Des gheat amoi xog - in English: This deserves to be mentioned.


HOWTO integrate the checkpatch script into Claws Mail (or Sylpheed)

If you intend to send or review patches with Claws Mail (or Sylpheed), scripts/checkpatch.pl is very useful for catching coding style violations.

Quoting from Documentation/SubmittingPatches, the patch sender "should be able to justify all violations that remain in the patch."

1. Create an action:

Configuration > Actions...

  • Menu name: checkpatch

    Command: /usr/src/linux/scripts/checkpatch.pl %f (X) Shell command

Add.

Alternatively, just add

checkpatch: /usr/src/linux/scripts/checkpatch.pl %f

to .claws-mail/actionsrc

2. Optionally, add a toolbar button:

Configuration > Preferences...

  • Toolbars > Main Window

    • Item type: User Action

      Event executed on click: checkpatch

Add some nice icon, then

Add.

Move it up/down to a convenient location on the toolbar, maybe add an additional separator.

Now you can check an inline patch in a selected message with a single mouse click.

When sending a patch, you can first put the message into the queue folder, check it there, then send the queued messages.


CategoryHomepage

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01