Added a new make target that generates .txt files from Markdown release notes.

This commit is contained in:
Markus Makela
2015-03-20 21:49:14 +02:00
parent 5b634dab77
commit 92999a3174
3 changed files with 49 additions and 0 deletions

29
Documentation/format.pl Normal file
View File

@ -0,0 +1,29 @@
open(my $in,"<",@ARGV[0]);
open(my $out,">",@ARGV[1]);
my $tbl = 0;
while(<$in>){
if(/<table>/)
{
$tbl = 1;
}
elsif(/<\/table>/)
{
$tbl = 0;
}
else
{
if($tbl == 1)
{
s/\n//;
s/<\/tr>/\n/;
s/<td>//;
s/<tr>//;
s/<\/td>/\t/;
s/^ +//;
s/ +$//;
}
s/[*]/\t/;
print $out "$_";
}
}