Remove some code which refers ports/YEAR2000,v.

This commit is contained in:
Jun Kuriyama 2001-01-01 12:33:23 +00:00
parent 40e3545e39
commit 77e905d1a6
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8614
3 changed files with 6 additions and 37 deletions

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/ports/Makefile,v 1.29 2000/10/06 15:49:00 phantom Exp $ # $FreeBSD: www/en/ports/Makefile,v 1.30 2000/11/07 04:05:21 kuriyama Exp $
.if exists(../Makefile.conf) .if exists(../Makefile.conf)
.include "../Makefile.conf" .include "../Makefile.conf"
@ -27,17 +27,9 @@ CVS_OPT+= -d ${PORTSCVSROOT}
.if defined(NOPORTSCVS) .if defined(NOPORTSCVS)
${INDEX}: $${PORTSBASE}/${PINDEX} ${INDEX}: $${PORTSBASE}/${PINDEX}
cp ${PORTSBASE}/${PINDEX} ${INDEX} cp ${PORTSBASE}/${PINDEX} ${INDEX}
${Y2K}: $${PORTSBASE}/${PY2K}
cp ${PORTSBASE}/${PY2K} ${Y2K}
.else .else
${INDEX}: ${cvsindex} ${INDEX}: ${cvsindex}
cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX} cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX}
${Y2K}: ${cvsy2k}
cvs ${CVS_OPT} co -p ${PY2K} > ${Y2K}
.endif .endif
# build the list of available packages only on the # build the list of available packages only on the
@ -47,7 +39,7 @@ hostname!= hostname
.if defined(NOPORTSCVS) .if defined(NOPORTSCVS)
packages.exists: packages.exists:
.else .else
packages.exists: ${cvsindex} ${cvsy2k} packages.exists: ${cvsindex}
.endif .endif
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" .if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
@if sh ${.CURDIR}/packages > ${.TARGET}.temp; then \ @if sh ${.CURDIR}/packages > ${.TARGET}.temp; then \
@ -62,9 +54,9 @@ packages.exists: ${cvsindex} ${cvsy2k}
Makefile.gen: index.sgml .NOTMAIN Makefile.gen: index.sgml .NOTMAIN
echo DOCS= *.sgml > Makefile.gen echo DOCS= *.sgml > Makefile.gen
index.sgml: ${INDEX} ${Y2K} categories packages.exists portindex ports.inc .NOTMAIN index.sgml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN
rm -f *.sgml rm -f *.sgml
${PORTINDEX} ${INDEX} ${Y2K} ${.CURDIR} ${PORTINDEX} ${INDEX} ${.CURDIR}
install: all install: all

View file

@ -1,21 +1,17 @@
# $FreeBSD: www/en/ports/Makefile.inc,v 1.2 2000/02/28 12:46:07 phantom Exp $ # $FreeBSD: www/en/ports/Makefile.inc,v 1.3 2000/04/20 16:42:04 phantom Exp $
PORTINDEX= ${PERL} ${.CURDIR}/portindex PORTINDEX= ${PERL} ${.CURDIR}/portindex
INDEX= INDEX INDEX= INDEX
PINDEX= ports/${INDEX} PINDEX= ports/${INDEX}
Y2K= YEAR2000
PY2K= ports/${Y2K}
COOKIE= ${INDEX} Makefile.gen COOKIE= ${INDEX} Makefile.gen
CLEANFILES+= ${INDEX} CLEANFILES+= ${INDEX}
CLEANFILES+= ${Y2K}
CLEANFILES+= packages.exists.temp packages.exists CLEANFILES+= packages.exists.temp packages.exists
CLEANFILES+= ${DOCS} CLEANFILES+= ${DOCS}
CLEANFILES+= Makefile.gen CLEANFILES+= Makefile.gen
cvsindex= $${CVSROOT}/${PINDEX},v cvsindex= $${CVSROOT}/${PINDEX},v
cvsy2k= $${CVSROOT}/${PY2K},v
_ALLINSTALL= packages.exists ${INDEX} ${Y2K} _ALLINSTALL= packages.exists ${INDEX}

View file

@ -41,23 +41,8 @@ $today = &getdate;
&packages_exist('packages.exists', *packages); &packages_exist('packages.exists', *packages);
&category_description(($ARGV[2] || '.') . '/categories', *category_description); &category_description(($ARGV[2] || '.') . '/categories', *category_description);
&y2k_statements;
&main; &main;
sub y2k_statements {
open(Y2K, $ARGV[1]);
while(<Y2K>) {
chop();
( $dir, $url ) = split(/\s+/);
$dir = $base . "/" . $dir;
$y2k{$dir} = $url;
}
close(Y2K);
}
sub getdate { sub getdate {
@months = ("January", "February", "March", "April", "May","June", @months = ("January", "February", "March", "April", "May","June",
"July", "August", "September", "October", "November", "December"); "July", "August", "September", "October", "November", "December");
@ -170,10 +155,6 @@ sub main {
$data{$i} .= qq{ | <A HREF="$pds?$sourcepath">Sources</A>}; $data{$i} .= qq{ | <A HREF="$pds?$sourcepath">Sources</A>};
if ($y2k{"$loc"}) {
$data{$i} .= qq{ | <a href="$y2k{$loc}">Y2K</a>};
}
if ($www ne "") { if ($www ne "") {
$data{$i} .= qq{ | <a href="$www">Main Web Site</a>}; $data{$i} .= qq{ | <a href="$www">Main Web Site</a>};
} }