[gnumeric] news-to-html: teach this about the Debian bug system.



commit b596b6852dd53e2fbd6dce4e29c508a449cdfc72
Author: Morten Welinder <terra gnome org>
Date:   Fri Aug 16 15:32:18 2013 -0400

    news-to-html: teach this about the Debian bug system.
    
    ...thereby eliminating one error-prone manual task when making the
    www pages.

 tools/ChangeLog    |    4 ++++
 tools/news-to-html |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tools/ChangeLog b/tools/ChangeLog
index e3898ce..50f2701 100644
--- a/tools/ChangeLog
+++ b/tools/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-16  Morten Welinder  <terra gnome org>
+
+       * news-to-html (add_to_item): Teach this about Debian bug system.
+
 2013-07-10  Morten Welinder <terra gnome org>
 
        * Release 1.12.4
diff --git a/tools/news-to-html b/tools/news-to-html
index 2269888..2404a66 100644
--- a/tools/news-to-html
+++ b/tools/news-to-html
@@ -10,6 +10,7 @@ my $version2 = $version;
 $version2 =~ s/^(\d+\.\d+)\..*/$1/;
 
 my $bug_prefix = "https://bugzilla.gnome.org/show_bug.cgi?id=";;
+my $debian_bug_prefix = "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=";;
 
 my $state = 0;
 my $who = undef;
@@ -100,6 +101,7 @@ sub finish_item {
 sub add_to_item {
     my ($txt) = @_;
 
+    $txt =~ s{Debian\s+\#(\d\d\d\d\d+)}{Debian <a href=\"$debian_bug_prefix$1\"\>Bug $1</a>}g;
     $txt =~ s{\#(\d\d\d\d\d+)}{<a href=\"$bug_prefix$1\"\>Bug $1</a>}g;
 
     $item .= "\n\t$txt";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]