diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-27 11:41:32 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-27 11:41:32 -0300 |
commit | e8558b23c2907da5025c69968a2da368c3af2cd6 (patch) | |
tree | 8470ec2481d547f2336a84e3984758f0f6941cc7 /v4l/scripts/hghead.pl | |
parent | b958baf0ee13fa0e4472567f64ee943deb16d044 (diff) | |
parent | b171b4bf6091c1b3482b7ac3c14e1672f10c6950 (diff) | |
download | mediapointer-dvb-s2-e8558b23c2907da5025c69968a2da368c3af2cd6.tar.gz mediapointer-dvb-s2-e8558b23c2907da5025c69968a2da368c3af2cd6.tar.bz2 |
merge: http://linuxtv.org/hg/~dougsland/cx23885-417
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/hghead.pl')
-rwxr-xr-x | v4l/scripts/hghead.pl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl index 6f8a814ad..02295bcef 100755 --- a/v4l/scripts/hghead.pl +++ b/v4l/scripts/hghead.pl @@ -130,12 +130,8 @@ while ($line = <IN>) { next; } - if ($line =~ m/^[a-zA-Z\-]*:/) { - if ($line =~ m/Changeset:\s*(.*)\n/) { - $num=$1; - } - print "# $line"; - next; + if ($tag =~ m/changeset:\s*(.*)\n/) { + $num=$1; } if ($line =~ m|^(V4L\/DVB\s*\(.+\)\s*:.*\n)|) { @@ -155,13 +151,8 @@ while ($line = <IN>) { if ($subject =~ m|V4L\/DVB\s*(.+)|) { $subject=$1; } - if ($hgimport) { - $subject=$line; - next; - } - if ($line =~ m/^\n/) { - next; - } + $subject=$line; + next; } if ($noblank) { @@ -191,11 +182,20 @@ if (!$signed =~ m/$from/) { die; } -$body="$from\n$body"; +$from=~s/^[\n\s]+//; +$from=~s/[\n\s]+$//; + +$subject=~s/^[\n\s]+//; +$subject=~s/[\n\s]+$//; + +$body=~s/^[\n\s]+//; $body=~s/[\n\s]+$//; + +$body="$body\n\n$signed"; + $body=~s/^[\n\s]+//; +$body=~s/[\n\s]+$//; # First from is used by hg to recognize commiter name print "#Committer: $maintainer_name <$maintainer_email>\n"; -print "$subject\n$body\n\n$signed"; - +print "$subject\n\n$from\n\n$body\n"; |