summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.org>2014-07-30 15:34:19 +0200
committerSven Nierlein <sven@nierlein.org>2014-07-30 15:34:19 +0200
commiteaedbc260bd10e6273e6bda229175e7bd313ff38 (patch)
treecc7651acee2106e9a9908812dfdc54701bda6b37 /tools
parentd8c20cc487f4dc361af553c57b8b4f8a4ab1dd29 (diff)
parent15f8dab30ea1990460ff4b35ce1125786d8ef27b (diff)
downloadmonitoring-plugins-eaedbc260bd10e6273e6bda229175e7bd313ff38.tar.gz
Merge pull request #1280 from sni/fix-generate-change-log
Fix generate change log
Diffstat (limited to 'tools')
-rwxr-xr-xtools/generate-change-log2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/generate-change-log b/tools/generate-change-log
index 3a6b38e7..ad19ce96 100755
--- a/tools/generate-change-log
+++ b/tools/generate-change-log
@@ -19,6 +19,7 @@ use Text::Wrap;
19 19
20# The lines will have a length of no more than $columns - 1. 20# The lines will have a length of no more than $columns - 1.
21$Text::Wrap::columns = 81; 21$Text::Wrap::columns = 81;
22$Text::Wrap::huge = 'overflow';
22 23
23if (system('git rev-parse --git-dir >/dev/null 2>&1') != 0) { 24if (system('git rev-parse --git-dir >/dev/null 2>&1') != 0) {
24 print "Not a Git repository, so I won't update the ChangeLog.\n"; 25 print "Not a Git repository, so I won't update the ChangeLog.\n";
@@ -51,6 +52,7 @@ while ($git_log =~ /$regex/gm) {
51 $prev_date = $commit{date}; 52 $prev_date = $commit{date};
52 $prev_name = $commit{name}; 53 $prev_name = $commit{name};
53 $prev_email = $commit{email}; 54 $prev_email = $commit{email};
55 $commit{message} =~ s/\s*Signed\-off\-by.*$//sgmx;
54 56
55 my @files = split(/\n/, $commit{files}); 57 my @files = split(/\n/, $commit{files});
56 my @message = map { s/^ {4}//; $_ } split(/\n/, $commit{message}); 58 my @message = map { s/^ {4}//; $_ } split(/\n/, $commit{message});