Correctly handle cases then CVSROOT pointing to "wrong" repository (which

does not contain ports/INDEX), i.e. do not leave empty INDEX file in
error case.
This commit is contained in:
Alexey Zelkin 2004-03-23 23:04:23 +00:00
parent 73be3cc94b
commit 475ce00a81
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=20392

View file

@ -1,8 +1,8 @@
#
# The FreeBSD Russian Documentation Project
#
# $FreeBSD: www/ru/ports/Makefile,v 1.5 2003/12/30 18:27:40 andy Exp $
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.6 2003/12/30 18:26:40 andy Exp $
# $FreeBSD$
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.9 2004/03/23 21:09:19 phantom Exp $
#
# Original revision: 1.36
#
@ -13,9 +13,8 @@
.if exists(../Makefile.inc)
.include "../Makefile.inc"
.endif
.if exists(../../en/ports/Makefile.inc)
.include "../../en/ports/Makefile.inc"
.if exists(Makefile.inc)
.include "Makefile.inc"
.endif
CVS_READONLY?= YES
@ -37,7 +36,8 @@ ${INDEX}: $${PORTSBASE}/${PINDEX}
${CP} ${PORTSBASE}/${PINDEX} ${INDEX}
.else
${INDEX}:
${CVS} ${CVS_OPT} co -p ${PINDEX} > ${INDEX}
${CVS} ${CVS_OPT} co -p ${PINDEX} > ${INDEX} || \
(${RM} -f ${INDEX} && false)
.endif
# build the list of available packages only on the