root/trunk/nightly_build/convert_to_links.pl @ 209

Revision 209, 346 bytes (checked in by melo, 5 years ago)

Moved all the release notes filtering to a external perl script

Easier to maintain

Signed-off-by: Pedro Melo < melo@simplicidade.org>

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl -w
2#
3# Convert patterns of ticket and revision references to links
4#
5
6use strict;
7
8my $trac_base_url = 'http://trac.softwarelivre.sapo.pt/sapo_msg_mac';
9
10while (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.