From owner-svn-doc-all@freebsd.org Tue Dec 27 13:10:11 2016 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17607C930E8; Tue, 27 Dec 2016 13:10:11 +0000 (UTC) (envelope-from ryusuke@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E59FD1CE2; Tue, 27 Dec 2016 13:10:10 +0000 (UTC) (envelope-from ryusuke@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBRDAAtv097066; Tue, 27 Dec 2016 13:10:10 GMT (envelope-from ryusuke@FreeBSD.org) Received: (from ryusuke@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBRDAAZ7097065; Tue, 27 Dec 2016 13:10:10 GMT (envelope-from ryusuke@FreeBSD.org) Message-Id: <201612271310.uBRDAAZ7097065@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ryusuke set sender to ryusuke@FreeBSD.org using -f From: Ryusuke SUZUKI Date: Tue, 27 Dec 2016 13:10:10 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r49770 - head/ja_JP.eucJP/htdocs/ports X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2016 13:10:11 -0000 Author: ryusuke Date: Tue Dec 27 13:10:09 2016 New Revision: 49770 URL: https://svnweb.freebsd.org/changeset/doc/49770 Log: - Merge the following from the English version: r39545 -> r47265 head/ja_JP.eucJP/htdocs/ports/Makefile r28473 -> r47265 head/ja_JP.eucJP/htdocs/ports/portindex Modified: head/ja_JP.eucJP/htdocs/ports/portindex Modified: head/ja_JP.eucJP/htdocs/ports/portindex ============================================================================== --- head/ja_JP.eucJP/htdocs/ports/portindex Mon Dec 26 20:50:25 2016 (r49769) +++ head/ja_JP.eucJP/htdocs/ports/portindex Tue Dec 27 13:10:09 2016 (r49770) @@ -6,7 +6,7 @@ # Mon May 13 10:31:58 EST 1996 # $FreeBSD$ # The FreeBSD Japanese Documentation Project -# Original revision: 1.57 +# Original revision: r47265 ############################################################ @@ -36,24 +36,14 @@ if ($ENV{'MASTER_FTP_SERVER'}) { } else { $ftpserver = 'ftp://ftp.FreeBSD.org' if !$ftpserver; } -$baseHTTP = $base if !$baseHTTP; my $baseFTP = "$ftpserver/pub/FreeBSD/ports/ports"; -my $baseCVSWEB = 'http://www.FreeBSD.org/cgi/cvsweb.cgi/'; -$urlcgi = 'http://www.FreeBSD.org/cgi/url.cgi' if !$urlcgi; +my $baseSVNWEB = 'https://svnweb.FreeBSD.org/ports/head/'; $packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly my $ftparchive = ''; $ftparchive = '.tar' if !defined $ftparchive; -# ports download sources script -my $pds = 'http://www.FreeBSD.org/cgi/pds.cgi'; - -# better layout and link to the sources -if ($urlcgi) { - $baseHTTP = $urlcgi . '?' . $baseHTTP; -} - my %packages = (); my %category_description = (); my @category_groups = (); @@ -75,7 +65,7 @@ sub header { print $fh < @@ -219,9 +209,6 @@ sub main { $catkey{$name} = $cat[0]; - my $sourcepath = $loc; - $sourcepath =~ s%/usr/%%; - # desc translation ($lloc = $loc) =~ s@^/usr/ports/@@; $desc = $descLANG{$lloc} @@ -231,8 +218,9 @@ sub main { $stats{$i}++; # figure out the FTP url - $loc =~ s/\/usr\//$baseCVSWEB/; - $ldesc =~ s/\/usr\//$baseHTTP/; + $loc =~ s%/usr/ports/%$baseSVNWEB%; + $ldesc =~ s%/usr/ports/%$baseSVNWEB%; + $ldesc .= '?revision=HEAD'; # The name description and maintainer $name =~ s/,.*//g; @@ -246,10 +234,10 @@ sub main { $data{$i} .= qq{ | パッケージ}; } - $data{$i} .= qq{ | ソース}; + $data{$i} .= qq{ | 変更点}; if ($www ne "") { - $data{$i} .= qq{ | Main Web Site}; + $data{$i} .= qq{ | メインウェブサイト}; } my $ownerurl = $owner; @@ -294,7 +282,7 @@ sub main { # Add an entry to the master index - # workaround for XML syntax, `--' is not allowed in comments + # workaround XML syntax, `--' is not allowed in comments my $sname = $name; $sname =~ s/--/-=/g; $master[$portnumber] = @@ -326,6 +314,7 @@ EOF if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } + # Someone forgot to add a category to the description file # or there is a typo in the category field. else { @@ -335,7 +324,6 @@ EOF } print $moutf "\n"; - # Create the category file $outf->open(">$key.xml"); header($outf, "FreeBSD Ports: \u$key"); @@ -373,7 +361,7 @@ EOF print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { print $moutf - "
  • \u$key ($stats{$key})\n"; + "
  • \u$key ($stats{$key})"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } @@ -396,11 +384,9 @@ EOF $mindex->close; # Create statistics.ent - $statistics->open(">statistics.ent"); - print $statistics "\n"; - $statistics->close; + close(INDEX); }