summaryrefslogtreecommitdiff
path: root/v4l/scripts/hghead.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-08-05 10:00:02 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-08-05 10:00:02 -0300
commitb9ae36cc08d88d25ef5326e857fbea45b7e36588 (patch)
treea436b4abef1c2fdc40fc210c4273a9c8f8478bab /v4l/scripts/hghead.pl
parent73f479f972cdc76dca93f2800aaffddc066b1487 (diff)
downloadmediapointer-dvb-s2-b9ae36cc08d88d25ef5326e857fbea45b7e36588.tar.gz
mediapointer-dvb-s2-b9ae36cc08d88d25ef5326e857fbea45b7e36588.tar.bz2
Improve scripts to allow developers to add a hint about patch priority
From: Mauro Carvalho Chehab <mchehab@infradead.org> After this patch, a new meta-tag will be added, to give a hint about the priority: low - patches that add new drivers that aren't ready for kernel, but it would be interesting to be at the main tree; normal - Patches that will be merged on the next merge window; high - Bug fixes Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/hghead.pl')
-rwxr-xr-xv4l/scripts/hghead.pl24
1 files changed, 21 insertions, 3 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl
index 0f086294d..7dd40380a 100755
--- a/v4l/scripts/hghead.pl
+++ b/v4l/scripts/hghead.pl
@@ -19,6 +19,7 @@ my $maintainer_name=$ENV{CHANGE_LOG_NAME};
my $maintainer_email=$ENV{CHANGE_LOG_EMAIL_ADDRESS};
my $from="";
my $body="";
+my $priority="";
my $signed="";
my $fromname="";
@@ -64,8 +65,8 @@ while ($line = <IN>) {
my $tag=$line;
my $arg=$line;
- $tag =~ s/\s*([^\s]+:)(.*)\n/\1/;
- $arg =~ s/\s*([^\s]+:)(.*)\n/\2/;
+ $tag =~ s/\s*([^\s]+:)\s*(.*)\n/\1/;
+ $arg =~ s/\s*([^\s]+:)\s*(.*)\n/\2/;
$tag =~ tr/A-Z/a-z/;
@@ -96,6 +97,19 @@ while ($line = <IN>) {
next;
}
+ if ($tag =~ m/^priority:/) {
+ $arg =~ tr/A-Z/a-z/;
+
+ # Replace the -git branch names for high/normal/low
+ $arg =~ s/^fixes$/high/;
+ $arg =~ s/^fix$/high/;
+ $arg =~ s/^working$/normal/;
+ $arg =~ s/^work$/normal/;
+ $arg =~ s/^pending$/low/;
+ $priority = "Priority: $arg";
+ next;
+ }
+
if ($line =~ m;^ .*\/.*\| *[0-9]*;) {
next;
}
@@ -196,9 +210,13 @@ $from=~s/[\n\s]+$//;
$subject=~s/^[\n\s]+//;
$subject=~s/[\n\s]+$//;
-$body=~s/^[\n\s]+//;
+$body=~s/^[\n]+//;
$body=~s/[\n\s]+$//;
+if ($priority ne "") {
+ $body="$body\n\n$priority";
+}
+
$body="$body\n\n$signed";
$body=~s/^[\n\s]+//;