Clean-up around directory traversing and revision checking.
Submitted by: hrs
This commit is contained in:
parent
3fd468d2a5
commit
af40ad9b9d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8068
40 changed files with 375 additions and 210 deletions
en
ja
Makefile
alpha
commercial
conspectus
copyright
docproj
gallery
includes.sgmlinternal
java
news
prehtmlprojects
releases
search
security
tutorials
share/mk
16
en/web.mk
16
en/web.mk
|
@ -1,5 +1,5 @@
|
|||
# bsd.web.mk
|
||||
# $FreeBSD: www/en/web.mk,v 1.31 2000/09/30 00:21:38 nbm Exp $
|
||||
# $FreeBSD: www/en/web.mk,v 1.32 2000/10/02 07:52:48 kuriyama Exp $
|
||||
|
||||
#
|
||||
# Build and install a web site.
|
||||
|
@ -74,6 +74,17 @@ GENDOCS+= ${REVFILES}
|
|||
# things to install.
|
||||
|
||||
.SUFFIXES: .html
|
||||
.if defined(REVCHECK)
|
||||
PREHTML= ${.CURDIR}/${BUILDTOP}/ja/prehtml
|
||||
PREHTMLFLAGS= ${PREHTMLOPTS}
|
||||
BUILDTOP= ${LOCALTOP}/..
|
||||
LOCALPREFIX!= cd ${LOCALTOP}; echo $${PWD};
|
||||
DIR_IN_LOCAL= ${PWD:S/^${LOCALPREFIX}//:S/^\///}
|
||||
PREHTMLFLAGS+= -revcheck "${LOCALTOP}" "${DIR_IN_LOCAL}"
|
||||
.else
|
||||
DATESUBST= 's/<!ENTITY date[ \t]*"$$Free[B]SD. .* \(.* .*\) .* .* $$">/<!ENTITY date "Last modified: \1">/'
|
||||
PREHTML= sed -e ${DATESUBST}
|
||||
.endif
|
||||
.if !defined(OPENJADE)
|
||||
SGMLNORM= sgmlnorm
|
||||
.else
|
||||
|
@ -84,10 +95,9 @@ CATALOG?= ${PREFIX}/share/sgml/html/catalog
|
|||
SGMLNORMFLAGS= -d ${SGMLNORMOPTS} -c ${CATALOG} -D ${.CURDIR}
|
||||
GENDOCS+= ${DOCS:M*.sgml:S/.sgml$/.html/g}
|
||||
ORPHANS:= ${ORPHANS:N*.sgml}
|
||||
DATESUBST= 's/<!ENTITY date[ \t]*"$$Free[B]SD. .* \(.* .*\) .* .* $$">/<!ENTITY date "Last modified: \1">/'
|
||||
|
||||
.sgml.html:
|
||||
sed -e ${DATESUBST} ${.IMPSRC} |\
|
||||
${PREHTML} ${PREHTMLFLAGS} ${.IMPSRC} |\
|
||||
SGML_CATALOG_FILES='' ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET}
|
||||
|
||||
###
|
||||
|
|
15
ja/Makefile
15
ja/Makefile
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/Makefile,v 1.40 2000/06/18 23:08:11 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/Makefile,v 1.41 2000/10/02 07:54:39 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.53
|
||||
|
||||
.if exists(Makefile.conf)
|
||||
.include "Makefile.conf"
|
||||
LOCALTOP= .
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
# These are turned into validated, normalized HTML files.
|
||||
|
@ -66,9 +68,6 @@ 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"
|
||||
REVCHECK= yes
|
||||
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# $FreeBSD: www/ja/alpha/Makefile,v 1.9 1999/09/07 15:15:46 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/alpha/Makefile,v 1.10 1999/12/23 01:15:46 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.6
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
|
||||
DOCS= alpha.sgml
|
||||
|
||||
INDEXLINK=alpha.html
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= alpha
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/commercial/Makefile,v 1.9 1999/12/23 01:15:46 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/commercial/Makefile,v 1.10 2000/05/07 01:55:55 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.12
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
PERL= perl5
|
||||
|
@ -19,8 +21,6 @@ DOCS = commercial.sgml
|
|||
INDEXLINK=commercial.html
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= commercial
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD$
|
||||
# $FreeBSD: www/ja/conspectus/Makefile,v 1.1 2000/06/18 23:06:42 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS= index.sgml
|
||||
|
@ -12,8 +14,6 @@ DOCS= index.sgml
|
|||
#SUBDIR= stable
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= conspectus
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/copyright/Makefile,v 1.11 1999/12/18 05:13:28 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/copyright/Makefile,v 1.12 1999/12/23 01:15:47 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.9
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS= license.sgml
|
||||
|
@ -35,8 +37,6 @@ CVS_OPT+= -R
|
|||
#.endif
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= copyright
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/docproj/Makefile,v 1.10 1999/09/07 15:15:47 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/docproj/Makefile,v 1.11 1999/12/23 01:15:48 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.7
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS= current.sgml
|
||||
|
@ -17,8 +19,6 @@ DOCS+= docproj.sgml
|
|||
INDEXLINK= docproj.html
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= docproj
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/gallery/Makefile,v 1.10 2000/04/27 02:07:19 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/gallery/Makefile,v 1.11 2000/10/02 07:54:40 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.10
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS = gallery.sgml
|
||||
|
@ -19,8 +21,6 @@ gallery.inc: ../../en/gallery/gallery.db gallery.sgml
|
|||
> gallery.inc
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= gallery
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: www/ja/includes.sgml,v 1.22 2000/02/16 04:27:56 motoyuki Exp $ -->
|
||||
<!-- $FreeBSD: www/ja/includes.sgml,v 1.23 2000/04/01 23:38:41 kuriyama Exp $ -->
|
||||
<!-- The FreeBSD Japanese Documentation Project -->
|
||||
<!-- Original revision: 1.35 -->
|
||||
<!--
|
||||
|
@ -39,8 +39,8 @@
|
|||
<!ENTITY cvsweb 'http://www.jp.FreeBSD.org/cgi/cvsweb.cgi/'>
|
||||
<!ENTITY rev.msg '
|
||||
<p>
|
||||
(訳注: 最新の <a href="&buildtop;/&reldir;/&basename;.html">原文</a> とは
|
||||
<a href="&cvsweb;www/en/&reldir;/&basename;.sgml.diff?r1=&rev.base;&r2=&rev.latest;">
|
||||
(訳注: 最新の <a href="&file.orgbase;.html">原文</a> とは
|
||||
<a href="&cvsweb;&file.cvsweb;.diff?r1=&rev.target;&r2=&rev.latest;">
|
||||
ずれ</a> があります.)
|
||||
</p>'>
|
||||
]]>
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/internal/Makefile,v 1.13 2000/01/22 01:20:37 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/internal/Makefile,v 1.14 2000/05/07 01:54:44 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.22
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
# DOCS= photos.sgml
|
||||
|
@ -19,8 +21,6 @@ INDEXLINK= internal.html
|
|||
# DATA+= README.mirror
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= internal
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
# $FreeBSD: www/ja/java/Makefile,v 1.5 2000/04/27 22:47:17 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/java/Makefile,v 1.6 2000/09/28 11:58:22 hrs Exp $
|
||||
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
SUBDIR = dists
|
||||
|
@ -18,7 +20,9 @@ DOCS+= install.sgml
|
|||
DOCS+= newsflash.sgml
|
||||
#DOCS+= press.sgml
|
||||
|
||||
### Revision checking
|
||||
REVCHECK= YES
|
||||
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= java
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
# $FreeBSD: www/ja/java/dists/Makefile,v 1.1 2000/04/27 02:05:10 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/java/dists/Makefile,v 1.2 2000/09/28 11:58:23 hrs Exp $
|
||||
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.3
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= 10.sgml
|
||||
DOCS+= 11.sgml
|
||||
DOCS+= 12.sgml
|
||||
|
@ -14,4 +16,6 @@ REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
|||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= java/dists
|
||||
|
||||
.include "../../web.mk"
|
||||
REVCHECK= YES
|
||||
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,14 +1,20 @@
|
|||
# $FreeBSD: www/ja/news/1996/Makefile,v 1.1 2000/05/12 15:34:40 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/news/1996/Makefile,v 1.2 2000/09/28 11:58:24 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ../..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS= index.sgml
|
||||
|
||||
### Revision checking
|
||||
#REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
REVCHECK= YES
|
||||
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= news/1996
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
# $FreeBSD: www/ja/news/1997/Makefile,v 1.1 2000/05/12 15:34:41 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/news/1997/Makefile,v 1.2 2000/09/28 11:58:24 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ../..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS= index.sgml
|
||||
|
||||
### Revision checking
|
||||
REVCHECK= yes
|
||||
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= news/1997
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/news/Makefile,v 1.19 2000/06/15 01:40:22 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/news/Makefile,v 1.20 2000/08/02 08:04:44 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.20
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
# quick news letter
|
||||
|
@ -39,8 +41,6 @@ SUBDIR= 1996
|
|||
SUBDIR+= 1997
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= news
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
127
ja/prehtml
Executable file
127
ja/prehtml
Executable file
|
@ -0,0 +1,127 @@
|
|||
#!/usr/bin/perl -w
|
||||
#
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
#
|
||||
# This is a preprocessor for HTML docs.
|
||||
#
|
||||
# usage: prehtml [-revcheck <localtop> <relative to localtop>] <SGML filename>
|
||||
# (ex. % prehtml -revcheck ../.. news/1996 index.sgml)
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
my $revcheck;
|
||||
my $topdir;
|
||||
my $reldir;
|
||||
|
||||
my %file;
|
||||
my %rev;
|
||||
|
||||
### parse options ....................................................
|
||||
###
|
||||
sub sOPT {1};
|
||||
sub sARG {2};
|
||||
|
||||
my $opt_state = sOPT;
|
||||
my $argv;
|
||||
|
||||
while(defined($_ = $ARGV[0])) {
|
||||
|
||||
if ($opt_state eq sOPT) {
|
||||
# option expected
|
||||
if(/^-(.+)/) {
|
||||
shift @ARGV; # discard option itself;
|
||||
local $_ = $1;
|
||||
/revcheck/ and do {
|
||||
$topdir = shift @ARGV;
|
||||
$reldir = shift @ARGV;
|
||||
if($reldir ne '' and $reldir !~ /\/$/) {
|
||||
$reldir .= "/";
|
||||
}
|
||||
$revcheck = 1;
|
||||
next;
|
||||
};
|
||||
} else {
|
||||
# this is not a option but an argument
|
||||
$opt_state = sARG;
|
||||
next;
|
||||
}
|
||||
} elsif ($opt_state eq sARG) {
|
||||
$file{target} = $_;
|
||||
if($revcheck) {
|
||||
s/.sgml$//;
|
||||
my $basename = $_;
|
||||
$file{cvsweb} = "www/en/${reldir}${basename}.sgml";
|
||||
$file{orgbase} = "${topdir}/../en/${reldir}${basename}";
|
||||
$rev{org} = get_rev_org($file{orgbase}.".sgml");
|
||||
}
|
||||
last;
|
||||
}
|
||||
die "internal error: option parsing abnormally terminated.\n";
|
||||
}
|
||||
|
||||
### add and replace entities .........................................
|
||||
###
|
||||
open TARGET,"<$file{target}" or die "cannot open a target file: $!\n";
|
||||
my $pos_date;
|
||||
### first, get date string and rev_target
|
||||
while(defined($_ = <TARGET>)) {
|
||||
if(/<!ENTITY\s+date\s+\"\$Free[B]SD: [^\s]+ [.0-9]+ ([\/0-9]+)[^\$]*\$\">/) {
|
||||
$pos_date = tell(TARGET);
|
||||
$date = "<!ENTITY date \"Last modified: $1\">";
|
||||
}
|
||||
|
||||
if($revcheck) {
|
||||
if(/[Oo]riginal [Rr]evision:[ \t]*([0-9.]+)/) {
|
||||
$rev{target} = $1;
|
||||
}
|
||||
last if($revcheck and $rev{target} and $date);
|
||||
} else {
|
||||
last if($date);
|
||||
}
|
||||
}
|
||||
|
||||
$rev{target} ||= "TARGET revision not found";
|
||||
$rev{org} ||= "ORG revision not found";
|
||||
|
||||
### next, put lines and replace the line with
|
||||
### $date + entity difinitions for revcheck
|
||||
seek TARGET,0,0;
|
||||
while(defined($_ = <TARGET>)) {
|
||||
if(tell(TARGET) == $pos_date) {
|
||||
print $date,"\n";
|
||||
if($revcheck) {
|
||||
#print STDERR "$rev{org} -> $rev{target}\n";
|
||||
print "<!ENTITY base CDATA '$topdir'>\n";
|
||||
print "<!ENTITY file.cvsweb CDATA '$file{cvsweb}'>\n";
|
||||
print "<!ENTITY file.orgbase CDATA '$file{orgbase}'>\n";
|
||||
print "<!ENTITY rev.latest CDATA '$rev{org}'>\n";
|
||||
print "<!ENTITY rev.target CDATA '$rev{target}'>\n";
|
||||
printf "<!ENTITY %% rev.diff '%s'>\n", ($rev{org} eq $rev{target}) ? "IGNORE" : "INCLUDE";
|
||||
}
|
||||
} else {
|
||||
# for backward compatibility
|
||||
s/<!ENTITY \% rev.incl SYSTEM "[-a-zA-Z0-9]+.revinc"> \%rev.incl;//;
|
||||
print;
|
||||
}
|
||||
}
|
||||
close TARGET;
|
||||
|
||||
exit 0;
|
||||
|
||||
sub get_rev_org
|
||||
{
|
||||
my $infile = shift @_;
|
||||
my $rev_org;
|
||||
|
||||
open ORG,"<$infile" or return undef;
|
||||
while(defined($_ = <ORG>)) {
|
||||
if(/\$Free[B]SD: [^\s]+ ([.0-9]+) [\/0-9]+[^\$]*\$/) {
|
||||
$rev_org = $1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
close ORG;
|
||||
return $rev_org;
|
||||
}
|
||||
|
||||
__END__
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/projects/Makefile,v 1.8 1999/09/07 15:15:51 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/projects/Makefile,v 1.9 1999/12/23 01:15:56 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.6
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS= projects.sgml
|
||||
|
@ -13,8 +15,6 @@ DOCS+= newbies.sgml
|
|||
INDEXLINK= projects.html
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= projects
|
||||
REVCHECK= yes
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# $FreeBSD: www/ja/releases/2.1.5R/Makefile,v 1.2 1999/09/06 07:03:24 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.1.5R/Makefile,v 1.3 1999/12/23 01:15:58 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
#DOCS= announce.sgml notes.sgml
|
||||
DOCS= notes.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.1.5R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# $FreeBSD: www/ja/releases/2.1.6R/Makefile,v 1.2 1999/09/06 07:03:24 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.1.6R/Makefile,v 1.3 1999/12/23 01:15:59 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
#DOCS= announce.sgml notes.sgml security.sgml
|
||||
DOCS= notes.sgml security.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.1.6R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# $FreeBSD: www/ja/releases/2.1.7R/Makefile,v 1.2 1999/09/06 07:03:24 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.1.7R/Makefile,v 1.3 1999/12/23 01:16:00 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
#DOCS= announce.sgml notes.sgml
|
||||
DOCS= notes.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.1.7R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2.1R/Makefile,v 1.2 1999/09/06 07:03:25 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2.1R/Makefile,v 1.3 1999/12/23 01:16:01 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= notes.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2.1R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2.2R/Makefile,v 1.2 1999/09/06 07:03:25 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2.2R/Makefile,v 1.3 1999/12/23 01:16:01 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2.2R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2.5R/Makefile,v 1.3 1999/09/06 07:03:25 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2.5R/Makefile,v 1.4 1999/12/23 01:16:02 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2.5R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2.6R/Makefile,v 1.4 1999/09/06 07:03:26 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2.6R/Makefile,v 1.5 1999/12/23 01:16:03 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2.6R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2.7R/Makefile,v 1.4 1999/09/06 07:03:26 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2.7R/Makefile,v 1.5 1999/12/23 01:16:04 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2.7R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2.8R/Makefile,v 1.2 1999/09/06 07:03:27 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2.8R/Makefile,v 1.3 1999/12/23 01:16:05 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2.8R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/2.2R/Makefile,v 1.2 1999/09/06 07:03:27 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/2.2R/Makefile,v 1.3 1999/12/23 01:16:06 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.2
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml install-media.sgml notes.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/2.2R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/3.0R/Makefile,v 1.4 1999/09/06 07:03:28 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/3.0R/Makefile,v 1.5 1999/12/23 01:16:07 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/3.0R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/3.1R/Makefile,v 1.3 1999/09/06 07:03:28 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/3.1R/Makefile,v 1.4 1999/12/23 01:16:08 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/3.1R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/3.2R/Makefile,v 1.2 1999/09/06 07:03:29 peter Exp $
|
||||
# $FreeBSD: www/ja/releases/3.2R/Makefile,v 1.3 1999/12/23 01:16:09 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/3.2R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/3.3R/Makefile,v 1.2 1999/10/29 13:03:14 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/releases/3.3R/Makefile,v 1.3 1999/12/23 01:16:10 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/3.3R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/3.4R/Makefile,v 1.2 2000/01/06 02:39:46 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/releases/3.4R/Makefile,v 1.3 2000/01/06 03:42:53 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/3.4R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# $FreeBSD: www/ja/releases/3.5R/Makefile,v 1.1 2000/06/29 00:06:23 motoyuki Exp $
|
||||
# $FreeBSD: www/ja/releases/3.5R/Makefile,v 1.2 2000/07/09 15:55:59 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml notes.sgml errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/3.5R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# $FreeBSD: www/ja/releases/4.0R/Makefile,v 1.1 2000/04/01 15:04:20 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/releases/4.0R/Makefile,v 1.2 2000/06/29 00:06:24 motoyuki Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml
|
||||
DOCS+= notes.sgml
|
||||
DOCS+= errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/4.0R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# $FreeBSD: www/ja/releases/4.1R/Makefile,v 1.1 2000/08/28 21:40:16 hrs Exp $
|
||||
# $FreeBSD: www/ja/releases/4.1R/Makefile,v 1.2 2000/09/15 07:45:38 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
LOCALTOP= ../..
|
||||
|
||||
DOCS= announce.sgml
|
||||
DOCS+= notes.sgml
|
||||
DOCS+= errata.sgml
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../../..
|
||||
DIR_IN_LOCAL= releases/4.1R
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/releases/Makefile,v 1.17 2000/06/29 00:06:23 motoyuki Exp $
|
||||
# $FreeBSD: www/ja/releases/Makefile,v 1.18 2000/08/28 21:40:15 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.24
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS?= index.sgml snapshots.sgml
|
||||
|
@ -19,8 +21,6 @@ SUBDIR=
|
|||
.endif
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= releases
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/search/Makefile,v 1.8 2000/04/24 02:16:33 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/search/Makefile,v 1.9 2000/09/30 12:30:40 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.7
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
# These are turned into validated, normalized HTML files.
|
||||
|
@ -19,12 +21,11 @@ CLEANFILES+=atoz.sgml site.sgml
|
|||
index-site.html: atoz.sgml site.sgml
|
||||
atoz.sgml: web.atoz
|
||||
sort -fu ${.ALLSRC} | ${PERL} ${.CURDIR}/../../en/search/atoz.pl > ${.TARGET}
|
||||
|
||||
site.sgml: ${.CURDIR}/../../en/search/site.map
|
||||
${PERL} ${.CURDIR}/../../en/search/site.pl < ${.ALLSRC} > ${.TARGET}
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= search
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
# $FreeBSD: www/ja/security/Makefile,v 1.10 1999/11/23 04:56:41 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/security/Makefile,v 1.11 1999/12/23 01:16:13 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.6
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
LOCALTOP= ..
|
||||
|
||||
.if exists(${LOCALTOP}/Makefile.conf)
|
||||
.include "${LOCALTOP}/Makefile.conf"
|
||||
.endif
|
||||
|
||||
DOCS=
|
||||
|
@ -12,8 +14,6 @@ DOCS+= security.sgml
|
|||
INDEXLINK= security.html
|
||||
|
||||
### Revision checking
|
||||
REVFILES= ${DOCS:M*.sgml:S/.sgml$/.revinc/g}
|
||||
BUILDTOP= ../..
|
||||
DIR_IN_LOCAL= security
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
#
|
||||
# $FreeBSD: www/ja/tutorials/Makefile,v 1.5 2000/07/20 12:42:51 hrs Exp $
|
||||
# $FreeBSD: www/ja/tutorials/Makefile,v 1.6 2000/10/02 07:54:41 kuriyama Exp $
|
||||
#
|
||||
# Original revision: 1.9
|
||||
#
|
||||
# Build the FreeBSD tutorials/articles outside of the www tree, and then
|
||||
# install them in to the right place.
|
||||
|
||||
LOCALTOP= ..
|
||||
|
||||
DOCS = index.sgml
|
||||
|
||||
DIRS_TO_CLEAN = ../../../doc/ja_JP.eucJP/articles \
|
||||
|
@ -20,8 +22,6 @@ all afterinstall:
|
|||
(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
|
||||
REVCHECK= YES
|
||||
|
||||
.include "../web.mk"
|
||||
.include "${LOCALTOP}/web.mk"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# bsd.web.mk
|
||||
# $FreeBSD: www/en/web.mk,v 1.31 2000/09/30 00:21:38 nbm Exp $
|
||||
# $FreeBSD: www/en/web.mk,v 1.32 2000/10/02 07:52:48 kuriyama Exp $
|
||||
|
||||
#
|
||||
# Build and install a web site.
|
||||
|
@ -74,6 +74,17 @@ GENDOCS+= ${REVFILES}
|
|||
# things to install.
|
||||
|
||||
.SUFFIXES: .html
|
||||
.if defined(REVCHECK)
|
||||
PREHTML= ${.CURDIR}/${BUILDTOP}/ja/prehtml
|
||||
PREHTMLFLAGS= ${PREHTMLOPTS}
|
||||
BUILDTOP= ${LOCALTOP}/..
|
||||
LOCALPREFIX!= cd ${LOCALTOP}; echo $${PWD};
|
||||
DIR_IN_LOCAL= ${PWD:S/^${LOCALPREFIX}//:S/^\///}
|
||||
PREHTMLFLAGS+= -revcheck "${LOCALTOP}" "${DIR_IN_LOCAL}"
|
||||
.else
|
||||
DATESUBST= 's/<!ENTITY date[ \t]*"$$Free[B]SD. .* \(.* .*\) .* .* $$">/<!ENTITY date "Last modified: \1">/'
|
||||
PREHTML= sed -e ${DATESUBST}
|
||||
.endif
|
||||
.if !defined(OPENJADE)
|
||||
SGMLNORM= sgmlnorm
|
||||
.else
|
||||
|
@ -84,10 +95,9 @@ CATALOG?= ${PREFIX}/share/sgml/html/catalog
|
|||
SGMLNORMFLAGS= -d ${SGMLNORMOPTS} -c ${CATALOG} -D ${.CURDIR}
|
||||
GENDOCS+= ${DOCS:M*.sgml:S/.sgml$/.html/g}
|
||||
ORPHANS:= ${ORPHANS:N*.sgml}
|
||||
DATESUBST= 's/<!ENTITY date[ \t]*"$$Free[B]SD. .* \(.* .*\) .* .* $$">/<!ENTITY date "Last modified: \1">/'
|
||||
|
||||
.sgml.html:
|
||||
sed -e ${DATESUBST} ${.IMPSRC} |\
|
||||
${PREHTML} ${PREHTMLFLAGS} ${.IMPSRC} |\
|
||||
SGML_CATALOG_FILES='' ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET}
|
||||
|
||||
###
|
||||
|
|
Loading…
Reference in a new issue