r55890 - /scripts/patchedit

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Apr 10 15:27:45 UTC 2010


Author: gregoa
Date: Sat Apr 10 15:27:32 2010
New Revision: 55890

URL: http://svn.debian.org/wsvn/?sc=1&rev=55890
Log:
first commit of new script patchedit - helper for managing DEP3 headers in patches. currently contains only POD.

Added:
    scripts/patchedit

Added: scripts/patchedit
URL: http://svn.debian.org/wsvn/scripts/patchedit?rev=55890&op=file
==============================================================================
--- scripts/patchedit (added)
+++ scripts/patchedit Sat Apr 10 15:27:32 2010
@@ -1,0 +1,91 @@
+#!/usr/bin/perl
+
+=pod
+
+=head1 NAME
+
+B<patchedit> - Edit headers of a patch according to DEP3
+
+=head1 SYNOPSIS
+
+B<patchedit> I<command> F<patchfile>
+
+=head1 DESCRIPTION
+
+B<patchedit> is a helper script for managing patch headers according to
+L<http://dep.debian.net/deps/dep3/>.
+
+=head1 COMMANDS
+
+=over 
+
+=item I<edit> (default)
+
+Opens F<patchfile> in EDITOR (or VISUAL or sensible-editor) and
+
+=over
+
+=item * checks all headers
+
+=item * marks problems
+
+=item * adds missing required headers with proposals for their values
+
+=back
+
+If no command is given, I<edit> is chosen automatically.
+
+=item I<check>
+
+Does a non-interactive check if the headers conform to DEP3. Prints the
+results (missing required headers, wrong values, ...) to stdout.
+
+=back
+
+=head1 ARGUMENTS
+
+=over
+
+=item F<patchfile> (required)
+
+The patch to work on. Either a full path or the name of the file in
+F<./debian/patches>.
+
+=back
+
+=head1 OPTIONS
+
+=over
+
+=item B<-f|--fix>
+
+Tries to fix problems in the headers when editing/checking patches.
+
+=item B<-o|--optional>
+
+Also add/print missing optional headers.
+
+=item B<-h|--help>
+
+Help output.
+
+=back
+
+=head1 ENVIRONMENT
+
+B<patchedit> respects DEBEMAIL (or EMAIL) and DEBFULLNAME (for new Author or
+Reviewed-by headers).
+
+=head1 NOTE
+
+This script is not pkg-perl specific. It should go into I<devscripts>
+eventually.
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2010, NN <nn at example.org>.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+=cut




More information about the Pkg-perl-cvs-commits mailing list