Make it possible to override the complete path to the INDEX file used

for the ports/ part of the website, by setting the PINDEX_OVERRIDE
variable.
This commit is contained in:
Simon L. B. Nielsen 2004-09-25 11:59:58 +00:00
parent 8125841e99
commit a92a2b9942
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=22468

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/ports/Makefile,v 1.35 2002/05/20 13:49:27 phantom Exp $
# $FreeBSD: www/en/ports/Makefile,v 1.36 2003/05/11 21:16:56 ceri Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -24,7 +24,10 @@ CVS_OPT+= -R
CVS_OPT+= -d ${PORTSCVSROOT}
.endif
.if defined(NOPORTSCVS)
.if defined(PINDEX_OVERRIDE)
${INDEX}: ${PINDEX_OVERRIDE}
${CP} ${PINDEX_OVERRIDE} ${INDEX}
.elif defined(NOPORTSCVS)
${INDEX}: $${PORTSBASE}/${PINDEX}
${CP} ${PORTSBASE}/${PINDEX} ${INDEX}
.else