Fix bug and issue list scripts
The scripts now properly handle quoted CSV values with the help of a Perl script.
This commit is contained in:
20
Documentation/process.pl
Executable file
20
Documentation/process.pl
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/perl
|
||||
|
||||
# Discard the CSV headers
|
||||
<>;
|
||||
|
||||
while (<>)
|
||||
{
|
||||
# Replace commas that are inside double quotes
|
||||
s/("[^"]*),([^"]*")/$1$2/g;
|
||||
|
||||
# Replace the double quotes themselves
|
||||
s/"([^"]*)"/$1/g;
|
||||
|
||||
# Split the line and grab the issue number and description
|
||||
my @parts = split(/,/);
|
||||
my $issue = @parts[1];
|
||||
my $desc = @parts[0];
|
||||
|
||||
print "* ($issue)[https://jira.mariadb.org/browse/$issue] $desc\n";
|
||||
}
|
Reference in New Issue
Block a user