summaryrefslogtreecommitdiff
path: root/v4l/scripts/hghead.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-08-16 10:24:21 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-08-16 10:24:21 -0300
commit4f97ebf2c76b8763da9f57e7ad6d1457fc97a2bd (patch)
tree3b589dddf7f7f04abdcdcf773e69a2a3dde0a1a6 /v4l/scripts/hghead.pl
parent2020c904cc51965234736bfabc7769532a532fad (diff)
downloadmediapointer-dvb-s2-4f97ebf2c76b8763da9f57e7ad6d1457fc97a2bd.tar.gz
mediapointer-dvb-s2-4f97ebf2c76b8763da9f57e7ad6d1457fc97a2bd.tar.bz2
Properly handles commit messages with date: field
From: Mauro Carvalho Chehab <mchehab@infradead.org> This patch allows a better support for third party patches. Now, it will properly recognize and proccess messages with the following format: Date: <some date> From: <some developer> Subject: <patch subject> <body> This will help to better proccess messages received via email. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/hghead.pl')
-rwxr-xr-xv4l/scripts/hghead.pl12
1 files changed, 3 insertions, 9 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl
index 7dd40380a..dc989dd61 100755
--- a/v4l/scripts/hghead.pl
+++ b/v4l/scripts/hghead.pl
@@ -1,6 +1,5 @@
#!/usr/bin/perl
use strict;
-use Date::Parse;
#################################################################
# analyse diffs
@@ -46,18 +45,13 @@ while ($line = <IN>) {
last;
}
- if ($line =~ m/^# Date\s*(.*)/) {
+ if ($line =~ m/^#\s*Date\s*(.*)/) {
print "#Date: $1\n";
+ next;
}
if ($line =~ m/^Date:\s*(.*)/) {
- my $time = str2time($1);
-
- if ($time) {
- print "#Date: $time 0\n";
- } else {
- print "#Date: $1\n";
- }
+ print "#Date: $1\n";
next;
}