source: josm/trunk/tools/gitcommit2xml.pl @ 6540

Last change on this file since 6540 was 6540, checked in by Don-vip, 6 years ago

fix #9450 - Allow to build JOSM from a git mirror clone with ant -Dgit_revision=true

File size: 286 bytes
Line 
1#!perl -w
2
3$l=<>;
4if ($l =~ /([-+: .\w]+)/) {
5    $date=$1;
6}
7
8while (<>) {
9    if (/git-svn-id: [^@]*@([0-9]+)\s/) {
10        $rev=$1;
11    }
12}
13print "<info><entry><commit". ($rev?" revision=\"$rev\"":"") .">". ($date?"<date>$date</date>":"") ."</commit></entry></info>\n";
Note: See TracBrowser for help on using the repository browser.