patchedit1
Edit headers of a patch according to dep3
Usage
patchedit [command]
patchfile
Overview
patchedit is a helper script for managing patch headers according to <http://dep.debian.net/deps/dep3/>.
Commands
- edit (default)
-
Opens patchfile in EDITOR (or VISUAL or sensible-editor) and
- •
-
checks all headers
- •
-
marks problems
- •
-
adds missing required headers with proposals for their values
If no command is given, edit is chosen automatically.
- check
-
Does a non-interactive check if the headers conform to DEP3. Prints the results (missing required headers, wrong values, ...) to stdout.
Arguments
- patchfile (required)
-
The patch to work on.
Options
-f|--fix-
Tries to fix problems in the headers when editing/checking patches.
-o|--optional-
Also add/print missing optional headers.
-h|--help-
Help output.
Environment
patchedit respects DEBEMAIL (or EMAIL) and DEBFULLNAME (for new Author or Reviewed-by headers).
Note
This script is not pkg-perl specific. It should go into devscripts eventually.
Todo
* preserve the extra fields* preserve the order of the fields
Copyright and license
Copyright 2010, Jozef Kutej <[email protected]>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)
- Debian 8 (Jessie)