root/trunk/nightly_build/convert_to_links.pl
@
209
| Revision 209, 346 bytes (checked in by melo, 5 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/usr/bin/perl -w |
| 2 | # |
| 3 | # Convert patterns of ticket and revision references to links |
| 4 | # |
| 5 | |
| 6 | use strict; |
| 7 | |
| 8 | my $trac_base_url = 'http://trac.softwarelivre.sapo.pt/sapo_msg_mac'; |
| 9 | |
| 10 | while (my $l = <>) { |
| 11 | # Match #TICKET and switch to ticket link |
| 12 | $l =~ s{ |
| 13 | ( |
| 14 | \# |
| 15 | (\d+) |
| 16 | ) |
| 17 | }{<a href="$trac_base_url/ticket/$2">$1</a>}gx; |
| 18 | |
| 19 | print $l; |
| 20 | } |
Note: See TracBrowser
for help on using the browser.