diff --git a/ja/Makefile b/ja/Makefile index 9c77c3d4d5..20b8b297ce 100644 --- a/ja/Makefile +++ b/ja/Makefile @@ -1,74 +1,74 @@ -# $FreeBSD: www/ja/Makefile,v 1.39 2000/05/07 01:49:15 kuriyama Exp $ +# $FreeBSD: www/ja/Makefile,v 1.40 2000/06/18 23:08:11 kuriyama Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.52 +# Original revision: 1.53 .if exists(Makefile.conf) .include "Makefile.conf" .endif # These are turned into validated, normalized HTML files. DOCS= applications.sgml DOCS+= auditors.sgml DOCS+= availability.sgml DOCS+= docs.sgml DOCS+= features.sgml DOCS+= register.sgml DOCS+= index.sgml DOCS+= internet.sgml DOCS+= mailto.sgml DOCS+= publish.sgml DOCS+= send-pr.sgml DOCS+= support.sgml DOCS+= where.sgml DOCS+= y2kbug.sgml # Japanese-only file DOCS+= jabout.sgml CLEANFILES+=atoz.sgml site.sgml # These will be directly installed. DATA= index.html # Subdirectories # SGML SUBDIR= security SUBDIR+= commercial SUBDIR+= docproj SUBDIR+= news SUBDIR+= alpha SUBDIR+= internal SUBDIR+= java SUBDIR+= copyright SUBDIR+= search SUBDIR+= gallery SUBDIR+= projects SUBDIR+= releases SUBDIR+= conspectus .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= ports .endif # Non-SGML #SUBDIR+= gifs #SUBDIR+= cgi .if !defined(WEB_ONLY) || empty(WEB_ONLY) # Extern SUBDIR+= tutorials DOCSUBDIR= FAQ handbook .endif SGMLOPTS= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr -e EUC-JP WEBDIR= data/ja ### Revision checking REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g} BUILDTOP= .. DIR_IN_LOCAL= . .include "../web.mk" diff --git a/ja/gallery/Makefile b/ja/gallery/Makefile index 6312f62017..aef453e444 100644 --- a/ja/gallery/Makefile +++ b/ja/gallery/Makefile @@ -1,26 +1,26 @@ -# $FreeBSD: www/ja/gallery/Makefile,v 1.9 2000/04/24 02:10:48 kuriyama Exp $ +# $FreeBSD: www/ja/gallery/Makefile,v 1.10 2000/04/27 02:07:19 kuriyama Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.9 +# Original revision: 1.10 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif DOCS = gallery.sgml INDEXLINK= gallery.html CLEANFILES+= gallery.inc gallery.html: gallery.sgml gallery.inc gallery.inc: ../../en/gallery/gallery.db gallery.sgml - ${PERL} ../../en/gallery/prune.pl ../../en/gallery/gallery.db /dev/null | \ + ${PERL} ${.CURDIR}/../../en/gallery/prune.pl ${.CURDIR}/../../en/gallery/gallery.db /dev/null | \ ${PERL} -ne 'chomp; m/([-\w]+):\s+(\d+)/ and print qq/\n/'\ > gallery.inc ### Revision checking REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g} BUILDTOP= ../.. DIR_IN_LOCAL= gallery .include "../../web.mk" diff --git a/ja/ports/Makefile b/ja/ports/Makefile index b6294cffc3..fbdd924dbe 100644 --- a/ja/ports/Makefile +++ b/ja/ports/Makefile @@ -1,71 +1,71 @@ -# $FreeBSD: www/ja/ports/Makefile,v 1.17 1999/11/15 21:58:16 kuriyama Exp $ +# $FreeBSD: www/ja/ports/Makefile,v 1.18 2000/04/24 02:13:37 kuriyama Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.27 +# Original revision: 1.28 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../../en/ports/Makefile.inc) .include "../../en/ports/Makefile.inc" .endif CVS_READONLY?= YES CVS_OPT+= -Q .if !empty(CVS_READONLY) CVS_OPT+= -R .endif .if defined(NOPORTSCVS) ${INDEX}: $${PORTSBASE}/${PINDEX} cp ${PORTSBASE}/${PINDEX} ${INDEX} ${Y2K}: $${PORTSBASE}/${PY2K} cp ${PORTSBASE}/${PY2K} ${Y2K} .else ${INDEX}: ${cvsindex} cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX} ${Y2K}: ${cvsy2k} cvs ${CVS_OPT} co -p ${PY2K} > ${Y2K} .endif # build the list of available packages only on the # main FreeBSD machines hostname!= hostname .if defined(NOPORTSCVS) packages.exists: .else packages.exists: ${cvsindex} ${cvsy2k} .endif .if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" .if exists(${.CURDIR}/../../en/ports/packages.exists) cp ${.CURDIR}/../../en/ports/${.TARGET} . .else @if sh ${.CURDIR}/../../en/ports/packages > ${.TARGET}.temp; then \ mv ${.TARGET}.temp ${.TARGET}; \ else \ rm ${.TARGET}.temp; touch ${.TARGET}; \ fi; .endif .else touch ${.TARGET} .endif Makefile.gen: index.sgml .NOTMAIN echo DOCS= *.sgml > Makefile.gen index.sgml: ${INDEX} ${Y2K} categories packages.exists portindex ports.inc .NOTMAIN rm -f *.sgml - ${PORTINDEX} ${INDEX} ${Y2K} + ${PORTINDEX} ${INDEX} ${Y2K} ${.CURDIR} install: all all install clean: - ${MAKE} ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET} + (cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET}) .include "../../web.mk" diff --git a/ja/ports/portindex b/ja/ports/portindex index 4eb09f2510..00542b9552 100755 --- a/ja/ports/portindex +++ b/ja/ports/portindex @@ -1,312 +1,312 @@ #!/usr/bin/perl # convert a ports INDEX file to HTML # # by John Fieber # Mon May 13 10:31:58 EST 1996 -# $FreeBSD: www/ja/ports/portindex,v 1.18 2000/01/10 11:08:47 motoyuki Exp $ +# $FreeBSD: www/ja/ports/portindex,v 1.19 2000/04/24 02:13:38 kuriyama Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.31 +# Original revision: 1.33 ############################################################ # Load local config file. You can override in portindex.conf # the variables for the default web and the ftp server. This # make it easy to maintain a local web mirror and let the # URL point to yourself and not to the standard FreeBSD FTP server. $config = $0 . '.' . 'conf'; do $config if -f $config; # This is the base of where we ftp stuff from if ($ENV{'MASTER_FTP_SERVER'}) { $ftpserver = $ENV{'MASTER_FTP_SERVER'}; } else { $ftpserver = 'ftp://ftp.freebsd.org' if !$ftpserver; } $base = "$ftpserver/pub/FreeBSD/branches/-current" if !$base; $baseHTTP = $base if !$baseHTTP; $urlcgi = 'http://www.freebsd.org/cgi/url.cgi' if !$urlcgi; $packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly $ftparchive = 'tar' if !$ftparchive; # ports download sources script $pds = 'http://www.freebsd.org/cgi/pds.cgi'; # better layout and link to the sources if ($urlcgi) { $baseHTTP = $urlcgi . '?' . $baseHTTP; } $today = &getdate; &packages_exist('packages.exists', *packages); -&category_description('categories', *category_description); +&category_description(($ARGV[2] || '.') . '/categories', *category_description); &y2k_statements; &main; sub y2k_statements { open(Y2K, $ARGV[1]); while() { chop(); ( $dir, $url ) = split(/\s+/); $dir = $base . "/" . $dir; $y2k{$dir} = $url; } close(Y2K); } sub getdate { # @months = ("January", "February", "March", "April", "May","June", # "July", "August", "September", "October", "November", "December"); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year += 1900; # return "Last modified: $mday-$months[$mon]-$year"; $mon++; return "最終更新日: $year 年 $mon 月 $mday 日"; } sub header { local ($fh, $htext) = @_; print $fh ""; print $fh "$today\">\n"; print $fh ""; print $fh "\n"; print $fh "\n"; print $fh ""; print $fh "%includes;\n"; print $fh "]>\n"; print $fh "&header;\n"; } sub footer { local ($fh, $ftext) = @_; print $fh "\n$ftext\n"; print $fh "&footer;\n"; print $fh "\n\n"; } sub packages_exist { local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot create packages links\n"; return 1; }; while(

) { chop; $p{$_} = 1; } close P; return 0; } sub category_description { local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category description\n"; return 1; }; local($category, $description); while(

) { # ignore comments next if /^\s*#/; ($category, $description) = /^\s*"([^"]+)",\s*"([^"]+)/; $p{$category} = $description; } close P; return 0; } sub main { $sep = ":"; # 'COMMENT' translation database if (open(COMF, "comments.ja")) { while () { ($a, $b) = split('\|'); next if !defined($b); chop($b); $b =~ s/&/&/g; $b =~ s//>/g; $descLANG{$a} = $b; } } open(INDEX, $ARGV[0]); while () { chop; s/&/&/g; s//>/g; # Read a record ($name, $loc, $prefix, $desc, $ldesc, $owner, $cats, $bdep, $rdep, $www) = split('\|'); # Check for double hyphens in the name (--). $name =~ s/--/-/g; # Split the categories into an array @cat = split("[ \t]+", $cats); $catkey{$name} = $cat[0]; local($sourcepath) = $loc; $sourcepath =~ s%/usr/%%; # desc translation ($lloc = $loc) =~ s@^/usr/ports/@@; $desc = $descLANG{$lloc} if ($descLANG{$lloc} ne ''); foreach $i (@cat) { $stats{$i}++; # figure out the FTP url $loc =~ s/\/usr/$base/; $ldesc =~ s/\/usr/$baseHTTP/; # The name description and maintainer $data{$i} .= "

$name "; $data{$i} .= "
$desc
詳しい説明"; if ($packages{"$name.tgz"}) { $data{$i} .= qq{ | パッケージ}; } $data{$i} .= qq{ | ソース}; if ($y2k{"$loc"}) { $data{$i} .= qq{ | Y2K}; } if ($www ne "") { $data{$i} .= qq{ | Main Web Site}; } $ownerurl = $owner; $ownerurl =~ s/<//g; $data{$i} .= "
保守担当者: $owner"; # If there are any dependencies, list them if ($bdep ne "" || $rdep ne "") { $data{$i} .= "
必要なもの: "; @dep = split(/ /, "$bdep $rdep"); local($last) = ''; foreach $j (sort @dep) { next if $j eq $last; $last = $j; $data{$i} .= " $j,"; } # remove the trailing comma chop $data{$i}; } # If the port is listed in more than one category, throw # in some cross references if ($#cat > 0) { $data{$i} .= "
ここにも含まれています: "; foreach $j (@cat) { if ($j ne $i) { if ($j eq $cat[0]) { $data{$i} .= " \u$j,"; } else { $data{$i} .= " \u$j,"; } } } # remove the trailing comma chop($data{$i}); } $data{$i} .= "

\n" } # Add an entry to the master index # workaround for SGML bug, `--' is not allowed in comments local($sname) = $name; $sname =~ s/--/-=/g; $master[$portnumber] = "$name " . " -- $desc
\n"; $portnumber++; } open(MOUTF, ">index.sgml"); &header(MOUTF, "FreeBSD Ports"); # print MOUTF "\n"; print MOUTF "&blurb;"; - print MOUTF "

FreeBSD Ports コレクションには, 現時点で $portnumber 個の ports が提供されています.
全ての $portnumber 個の ports を tar でまとめて gzip したもの (およそ 8 メガバイト) をダウンロードするか, 以下の分類からたどってください:\n"; + print MOUTF "


FreeBSD Ports コレクションには, 現時点で $portnumber 個の ports が提供されています.
全ての $portnumber 個の ports を tar でまとめて gzip したもの (およそ 10 メガバイト) をダウンロードするか, 以下の分類からたどってください:\n"; print MOUTF "

\n"; print MOUTF "\n"; &footer(MOUTF, ""); close(MOUTF); # Create the master index file open(MINDEX, ">master-index.sgml"); &header(MINDEX, "FreeBSD Ports コレクション 一覧"); print MINDEX "

\n"; print MINDEX sort @master; print MINDEX "

"; &footer(MINDEX, "Port の分類"); close(MINDEX); close(INDEX); } diff --git a/ja/tutorials/Makefile b/ja/tutorials/Makefile index 0227dc0639..f78473cf0f 100644 --- a/ja/tutorials/Makefile +++ b/ja/tutorials/Makefile @@ -1,27 +1,27 @@ # -# $FreeBSD: www/ja/tutorials/Makefile,v 1.4 2000/05/07 01:55:56 kuriyama Exp $ +# $FreeBSD: www/ja/tutorials/Makefile,v 1.5 2000/07/20 12:42:51 hrs Exp $ # -# Original revision: 1.8 +# Original revision: 1.9 # # Build the FreeBSD tutorials/articles outside of the www tree, and then # install them in to the right place. DOCS = index.sgml DIRS_TO_CLEAN = ../../../doc/ja_JP.eucJP/articles \ ../../../doc/ja_JP.eucJP/books/porters-handbook \ ../../../doc/ja_JP.eucJP/books/ppp-primer # ../../../doc/ja_JP.eucJP/books/fdp-primer \ all afterinstall: - (cd ../../../doc/ja_JP.eucJP/articles && ${MAKE} 'FORMATS=html html-split' 'DESTDIR=${DESTDIR}/data/ja/tutorials/$${.CURDIR:T}' ${.TARGET:S/afterinstall/install/}) -# (cd ../../../doc/ja_JP.eucJP/books/fdp-primer && ${MAKE} 'FORMATS=html html-split' DESTDIR=${DESTDIR}/data/ja/tutorials/docproj-primer ${.TARGET:S/afterinstall/install/}) - (cd ../../../doc/ja_JP.eucJP/books/porters-handbook && ${MAKE} 'FORMATS=html html-split' DESTDIR=${DESTDIR}/data/ja/porters-handbook ${.TARGET:S/afterinstall/install/}) - (cd ../../../doc/ja_JP.eucJP/books/ppp-primer && ${MAKE} 'FORMATS=html html-split' DESTDIR=${DESTDIR}/data/ja/tutorials/ppp ${.TARGET:S/afterinstall/install/}) + (cd ${.CURDIR}/../../../doc/ja_JP.eucJP/articles && ${MAKE} 'FORMATS=html html-split' 'DESTDIR=${DESTDIR}/data/ja/tutorials/$${.CURDIR:T}' ${.TARGET:S/afterinstall/install/}) +# (cd ${.CURDIR}/../../../doc/ja_JP.eucJP/books/fdp-primer && ${MAKE} 'FORMATS=html html-split' DESTDIR=${DESTDIR}/data/ja/tutorials/docproj-primer ${.TARGET:S/afterinstall/install/}) + (cd ${.CURDIR}/../../../doc/ja_JP.eucJP/books/porters-handbook && ${MAKE} 'FORMATS=html html-split' DESTDIR=${DESTDIR}/data/ja/porters-handbook ${.TARGET:S/afterinstall/install/}) + (cd ${.CURDIR}/../../../doc/ja_JP.eucJP/books/ppp-primer && ${MAKE} 'FORMATS=html html-split' DESTDIR=${DESTDIR}/data/ja/tutorials/ppp ${.TARGET:S/afterinstall/install/}) ### Revision checking REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g} BUILDTOP= ../.. DIR_IN_LOCAL= tutorials .include "../web.mk"