OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1200/] [doc/] [gen-docinfo.pl] - Blame information for rev 645

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 645 julius
#!/usr/bin/perl
2
 
3
use warnings;
4
use strict;
5
 
6
my @keys = qw(number date author comment);
7
my @revs;
8
{
9
    local $/ = '';
10
 
11
    while (<>) {
12
        my @values = split(/\|/);
13
        my %rev;
14
        foreach (@keys) {
15
            $rev{$_} = shift @values;
16
            $rev{$_} =~ s/^\s+|\s+$//g;
17
        }
18
        push @revs, \%rev;
19
    }
20
}
21
 
22
if (@revs) {
23
    print "<revhistory>\n";
24
    foreach my $rev (@revs) {
25
        print "  <revision>\n";
26
        print "    <revnumber>$rev->{number}</revnumber>\n";
27
        print "    <date>$rev->{date}</date>\n";
28
        print "    <authorinitials>$rev->{author}</authorinitials>\n";
29
        print "    <revremark>\n";
30
        print "    $rev->{comment}\n";
31
        print "    </revremark>\n";
32
        print "  </revision>\n";
33
    }
34
    print "</revhistory>\n";
35
}
36
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.