summaryrefslogtreecommitdiff
path: root/v4l/scripts/hghead.pl
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts/hghead.pl')
-rwxr-xr-xv4l/scripts/hghead.pl14
1 files changed, 4 insertions, 10 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl
index 7dd40380a..abca09c45 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;
}
@@ -140,7 +134,7 @@ while ($line = <IN>) {
next;
}
- if ($tag =~ m/^(acked-by|thanks-to|reviewed-by|noticed-by|cc):/) {
+ if ($tag =~ m/^(acked-by|thanks-to|reviewed-by|noticed-by|tested-by|cc):/) {
$signed="$signed$line";
next;
}