From owner-dev-commits-doc-all@freebsd.org Thu Apr 29 18:48:55 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8018C6336C5 for ; Thu, 29 Apr 2021 18:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FWPfb3CNVz3C8h; Thu, 29 Apr 2021 18:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 60DDB1F059; Thu, 29 Apr 2021 18:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13TImtQa081197; Thu, 29 Apr 2021 18:48:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13TImtl3081196; Thu, 29 Apr 2021 18:48:55 GMT (envelope-from git) Date: Thu, 29 Apr 2021 18:48:55 GMT Message-Id: <202104291848.13TImtl3081196@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: =?utf-8?B?U3RlZmFuIEXDn2Vy?= Subject: git: 582cf4227c - main - content/en/cgi: Fix paths in cgi-style.pl, man.cgi, and ports.cgi MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 582cf4227c03af60806e9c437703f3fe0b0ea374 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2021 18:48:55 -0000 The branch main has been updated by se (ports, src committer): URL: https://cgit.FreeBSD.org/doc/commit/?id=582cf4227c03af60806e9c437703f3fe0b0ea374 commit 582cf4227c03af60806e9c437703f3fe0b0ea374 Author: Stefan Eßer AuthorDate: 2021-04-29 18:01:32 +0000 Commit: Stefan Eßer CommitDate: 2021-04-29 18:01:32 +0000 content/en/cgi: Fix paths in cgi-style.pl, man.cgi, and ports.cgi Adjust paths to point at cgit.freebsd.org instead of svnweb. An attempt has been made to provide the same kind of information as before, but the layout and information displayed by cgit is different from that of svnweb. Reviewed by: wosch PR: 255215 Differential Revision: https://reviews.freebsd.org/D29829 --- website/content/en/cgi/cgi-style.pl | 2 +- website/content/en/cgi/man.cgi | 2 +- website/content/en/cgi/ports.cgi | 16 +++++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/website/content/en/cgi/cgi-style.pl b/website/content/en/cgi/cgi-style.pl index 7a472103fc..2d02151496 100644 --- a/website/content/en/cgi/cgi-style.pl +++ b/website/content/en/cgi/cgi-style.pl @@ -151,7 +151,7 @@ $i_topbar = qq`
  • Developers
  • diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi index 6f5acf4d5a..81bbe323d5 100755 --- a/website/content/en/cgi/man.cgi +++ b/website/content/en/cgi/man.cgi @@ -2002,7 +2002,7 @@ macros like `appeared in NetBSD version 1.2' are not supported.
  • Some OSs provide only formatted manual pages (catpages), e.g., NetBSD and OpenBSD. In this case it is not possible to create Postscript and troff output.
  • -
  • The +
  • The Unix family tree, BSD part.
  • The FreeBSD Ports Changes script.
  • diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi index a927f2f46b..2162548251 100755 --- a/website/content/en/cgi/ports.cgi +++ b/website/content/en/cgi/ports.cgi @@ -110,7 +110,7 @@ sub init_variables { $remotePrefixHtml = "$hsty_base/ports"; # Web interface for the Ports tree - $remotePrefixRepo = 'https://svnweb.FreeBSD.org/ports/head'; + $remotePrefixRepo = 'https://cgit.FreeBSD.org/ports'; # Ports documentation $portsDesc = "$hsty_base/ports/"; @@ -317,7 +317,7 @@ sub out { if ( !$out_sec || $1 ne $out_sec ) { print "\n" if $counter > 0; print qq{\n

    } - . qq{Category $1} + . qq{Category $1} . "

    \n
    \n"; $out_sec = $1; } @@ -335,11 +335,13 @@ sub out { #$version =~ s/[\+,]/X/g; local ($l) = $path; - $l =~ s%^$remotePrefixFtp%$remotePrefixRepo%o; - $descfile =~ s%^$remotePrefixFtp%$remotePrefixRepo%o; + $l =~ s%^$remotePrefixFtp%$remotePrefixRepo/log%o; + local ($t) = $path; + $t =~ s%^$remotePrefixFtp%$remotePrefixRepo/tree%o; + $descfile =~ s%^$remotePrefixFtp%$remotePrefixRepo/plain%o; print - qq{
    $version
    \n}; + qq{
    $version
    \n}; print qq{
    }, &escapeHTML($comment), qq{
    \n}; print qq[Description :\n]; @@ -350,7 +352,7 @@ sub out { qq[Package :\n]; } - print qq[Changes
    \n]; + print qq[Changes
    \n]; print qq{Maintained by: 0 ) { print qq{Also listed in: }; foreach (@s) { - print qq{$_ } + print qq{$_ } if $_ ne $out_sec; } print "
    \n";