Subject: Re: CVS commit: htdocs
To: Klaus Heinz <heinz@netbsd.org>
From: Rui Paulo <rpaulo@NetBSD.org>
List: www-changes
Date: 07/20/2005 02:17:22
On 2005.07.18 22:49:02 +0000, Klaus Heinz wrote:
 | 
 | Module Name:	htdocs
 | Committed By:	heinz
 | Date:		Mon Jul 18 22:49:02 UTC 2005
 | 
 | Modified Files:
 | 	htdocs: Makefile
 | 
 | Log Message:
 | We have a subdirectory "bg", so we should descend into this.

I think we should not do this since bg/index.html does not exist, yet.

So this commit breaks 'make commit':

DOCLANGS=       bg cs de es et fr ko lt nl pl pt_BR ru sv zh_CN zh_TW
AUTOLAYOUTDIR=  ${.CURDIR}
FILES=  gallery/events.* layout.xml
.for l in ${DOCLANGS}
SUBDIR+=        ${l}
.  if (exists(${l}/Changes/index.list))
FILES+=${l}/Changes/index.list ${l}/Changes/index.html
.  elif (exists(${l}/Changes/index.xml))
FILES+=${l}/Changes/index.xml ${l}/Changes/index.html
.  endif
FILES+=${l}/index.html
.endfor
FILES+=index.html Changes/index.xml Changes/index.html

...

commit:
.if !empty(MSG)
        cvs commit -m '${MSG}' ${FILES}
.else
        cvs commit ${FILES}
.endif

		-- Rui Paulo