source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* cvsweb: delete support for the obsolete GNATS bug tracking system
@ 2019-11-11 15:47 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-11-11 15:47 UTC (permalink / raw)
  To: source

Log Message:
-----------
delete support for the obsolete GNATS bug tracking system

Modified Files:
--------------
    cvsweb:
        README
        cvsweb.cgi
        cvsweb.conf
        cvsweb.conf-freebsd
        cvsweb.conf-netbsd
        cvsweb.conf-openbsd

Removed Files:
-------------
    cvsweb:
        cvsweb.conf-ruby

Revision Data
-------------
Index: README
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/README,v
retrieving revision 4.6
retrieving revision 4.7
diff -LREADME -LREADME -u -p -r4.6 -r4.7
--- README
+++ README
@@ -37,13 +37,6 @@ o Customizable "show functions" option
     You can specify a regexp for each file type to teach rcsdiff(1) to
     recognize function lines.
 
-o Customizable PR categories
-o Move $prcgi to cvsweb.conf
-    Now each repository can have its own PR categories and
-    query-pr.cgi URL, which can be defined in cvsweb.conf-${cvstree}.
-    It is useful when you have such as NetBSD and/or OpenBSD
-    repositories.
-
 o Improved support for text-based browsers
     Unidiff is the default format for diffs, for text-based browsers.
 
Index: cvsweb.conf-openbsd
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf-openbsd,v
retrieving revision 4.1
retrieving revision 4.2
diff -Lcvsweb.conf-openbsd -Lcvsweb.conf-openbsd -u -p -r4.1 -r4.2
--- cvsweb.conf-openbsd
+++ cvsweb.conf-openbsd
@@ -11,29 +11,6 @@ if ($^O eq 'freebsd') {
 	$ENV{'RCSLOCALID'} = 'OpenBSD';
 }
 
-@prcategories = qw(
-    alpha
-    arm
-    documentation
-    i386
-    kernel
-    library
-    m68k
-    mips
-    ns32k
-    pending
-    ports
-    ppc
-    sparc
-    system
-    user
-    vax
-);
-
-$prcgi = "http://cvs.openbsd.org/cgi-bin/wwwgnats.pl/full?pr=%s";
-
-$prkeyword = "PR";
-
 $mancgi =
     "http://www.openbsd.org/cgi-bin/man.cgi?apropos=0&sektion=%s&query=%s&manpath=OpenBSD+Current&arch=i386&format=html";
 
Index: cvsweb.conf
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf,v
retrieving revision 4.7
retrieving revision 4.8
diff -Lcvsweb.conf -Lcvsweb.conf -u -p -r4.7 -r4.8
--- cvsweb.conf
+++ cvsweb.conf
@@ -76,26 +76,6 @@ $CMD{tar} ||= search_path('tar');
 #     'Yet another one' => 'http://192.168.0.2/cgi-bin/cvsweb.cgi/',
 #);
 
-# Bug tracking system linking options ("PR" means Problem Report, as in GNATS)
-# This will be done only for views for which $allow_*_extra below is true.
-#
-#@prcategories = qw(
-#    advocacy
-#    alpha
-#    bin
-#    conf
-#    docs
-#    gnu
-#    i386
-#    kern
-#    misc
-#    pending
-#    ports
-#    sparc
-#);
-#$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s";
-#$prkeyword = "PR";
-
 # Manual gateway linking.  This will be done only for views for which
 # $allow_*_extra below is true.
 #
@@ -386,8 +366,8 @@ $allow_markup = 1;
 #
 #$allow_mailtos = 0;
 
-## Extra hyperlinking means hyperlinks to bug tracking systems and manual page
-## gateways, see $prcgi and $mancgi and related options above.
+## Extra hyperlinking means hyperlinks to manual page
+## gateways, see $mancgi above.
 
 # Allow extra hyperlinking (such as PR cross-references) in logs?
 # Default: yes.
--- cvsweb.conf-ruby
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*-perl-*-
-# $Id: cvsweb.conf-ruby,v 4.1 2019/11/08 21:08:27 schwarze Exp $
-# $knu: cvsweb.conf-ruby,v 1.4 2001/10/11 15:15:12 knu
-#
-# Set up for Ruby repo options.
-
-@prcategories = qw(
-    incoming
-    questions
-    spurious
-    win32
-    1.4
-    1.5
-    1.6
-);
-
-$prcgi = "http://www.ruby-lang.org/cgi-bin/ruby-bugs/incoming?id=%s";
-
-$prkeyword = "Bug";
-
-1;
Index: cvsweb.conf-netbsd
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf-netbsd,v
retrieving revision 4.2
retrieving revision 4.3
diff -Lcvsweb.conf-netbsd -Lcvsweb.conf-netbsd -u -p -r4.2 -r4.3
--- cvsweb.conf-netbsd
+++ cvsweb.conf-netbsd
@@ -11,59 +11,6 @@ if ($^O eq 'freebsd') {
 	$ENV{'RCSLOCALID'} = 'NetBSD';
 }
 
-@prcategories = qw(
-    admin
-    bin
-    install
-    kern
-    lib
-    misc
-    pending
-    pkg
-    port-alpha
-    port-amiga
-    port-arc
-    port-arm26
-    port-arm32
-    port-atari
-    port-bebox
-    port-cobalt
-    port-dreamcast
-    port-hp300
-    port-hpcmips
-    port-i386
-    port-luna68k
-    port-m68k
-    port-mac68k
-    port-macppc
-    port-mips
-    port-mvme68k
-    port-newsmips
-    port-news68k
-    port-next68k
-    port-ofppc
-    port-pc532
-    port-pmax
-    port-powerpc
-    port-prep
-    port-sgimips
-    port-sh3
-    port-sparc
-    port-sparc64
-    port-sun3
-    port-vax
-    port-x68k
-    security
-    standards
-    test
-    xsrc
-    y2k
-);
-
-$prcgi = "http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=%s";
-
-$prkeyword = "PR";
-
 $mancgi = "https://netbsd.gw.com/cgi-bin/man-cgi?%s+%s";
 
 # Allow downloading a tarball of a pkgsrc
Index: cvsweb.conf-freebsd
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf-freebsd,v
retrieving revision 4.1
retrieving revision 4.2
diff -Lcvsweb.conf-freebsd -Lcvsweb.conf-freebsd -u -p -r4.1 -r4.2
--- cvsweb.conf-freebsd
+++ cvsweb.conf-freebsd
@@ -12,34 +12,6 @@ if ($^O eq 'freebsd') {
 	$ENV{'RCSLOCALID'} = 'FreeBSD';
 }
 
-@prcategories = qw(
-    advocacy
-    alpha
-    amd64
-    arm
-    bin
-    conf
-    docs
-    gnu
-    i386
-    ia64
-    java
-    kern
-    misc
-    pending
-    ports
-    powerpc
-    sparc64
-    standards
-    threads
-    usb
-    www
-);
-
-$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s";
-
-$prkeyword = "PR";
-
 $mancgi =
     "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+7.0-current&format=html";
 
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 4.19
retrieving revision 4.20
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r4.19 -r4.20
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -62,8 +62,7 @@ use vars qw (
   %alltags %fileinfo %tags @branchnames %nameprinted
   %symrev %revsym @allrevisions %date %author @revdisplayorder
   @revisions %state %difflines %log %branchpoint @revorder $keywordsubstitution
-  $prcgi @prcategories $re_prcategories $prkeyword $re_prkeyword $mancgi
-  $doCheckout $scriptname $scriptwhere
+  $mancgi $doCheckout $scriptname $scriptwhere
   $where $Browser $nofilelinks $maycompress @stickyvars
   $is_links $is_lynx $is_w3m $is_msie $is_mozilla3 $is_textbased
   %input $query $barequery $sortby $bydate $byrev $byauthor
@@ -603,10 +602,6 @@ if (-f $config_cvstree) {
 }
 undef $config_cvstree;
 
-$re_prcategories  = '(?:' . join ('|', @prcategories) . ')' if @prcategories;
-$re_prkeyword     = quotemeta($prkeyword) if defined($prkeyword);
-$prcgi           .= '%s' if defined($prcgi) && $prcgi !~ /%s/;
-
 $fullname         = catfile($cvsroot, $where);
 
 my $rewrite = 0;
@@ -1454,39 +1449,6 @@ sub htmlify($;$)
   }
 
   if ($extra) {
-
-    # get PR #'s as link: "PR#nnnn" "PR: nnnn, ..." "PR nnnn, ..." "bin/nnnn"
-    if (defined($prcgi) && defined($re_prkeyword)) {
-      my $prev;
-
-      do {
-        $prev = $_;
-        $_ = htmlify_sub {
-          s{
-            (\b$re_prkeyword[:\#]?\s*
-             (?:
-              \#?
-              \d+[,\s]\s*
-             )*
-             \#?)
-            (\d+)\b
-           }{
-             $1 . &link($2, sprintf($prcgi, $2))
-           }egix;
-        } $_;
-      } while ($_ ne $prev);
-
-      if (defined($re_prcategories)) {
-        $_ = htmlify_sub {
-          s{
-            (\b$re_prcategories/(\d+)\b)
-           }{
-             &link($1, sprintf($prcgi, $2))
-           }egox;
-        } $_;
-      }
-    }
-
     # get manpage specs as link: "foo.1" "foo(1)"
     if (defined($mancgi)) {
       $_ = htmlify_sub {
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-11 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 15:47 cvsweb: delete support for the obsolete GNATS bug tracking system schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).