12 This script takes the change log from one of the "Version x.y" pages in
13 collectd's wiki and converts it to the format used by the "ChangeLog" file.
14 This is usually done as part of the release process.
28 for (split (' ', $in)) {
30 my $word_len = 1 + length $word;
32 if (($line_len + $word_len) > $TextWidth) {
39 $line_len += $word_len;
54 if ($line =~ m#^\* (.*)#) {
62 $line =~ s# # #g;
63 $line =~ s#"#"#g;
65 $line =~ s#\{\{Plugin\|([^}]+)\}\}#$1 plugin#g;
66 $line =~ s@\{\{Issue\|([^}]+)\}\}@#$1@g;
67 $line =~ s#\[\[[^|\]]+\|([^\]]+)\]\]#$1#g;
68 $line =~ s#\[\[([^|\]]+)\]\]#$1#g;
70 $line =~ s#'''(.*?)'''#*$1*#g;
71 $line =~ s#''(.*?)''#$1#g;
72 $line =~ s#<code>(.*?)</code>#"$1"#gi;
74 print format_entry($line);