Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2011 12:31:30 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        shaun@FreeBSD.org
Cc:        doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: www/en/cgi Makefile www/share/mk web.site.mk
Message-ID:  <20110721.123130.698363444164784046.hrs@allbsd.org>
In-Reply-To: <201107202352.p6KNqCkN034366@repoman.freebsd.org>
References:  <201107202352.p6KNqCkN034366@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart0(Thu_Jul_21_12_31_30_2011_292)--
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Thu_Jul_21_12_31_30_2011_575)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Thu_Jul_21_12_31_30_2011_575)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Shaun Amott <shaun@FreeBSD.org> wrote
  in <201107202352.p6KNqCkN034366@repoman.freebsd.org>:

sh> shaun       2011-07-20 23:52:12 UTC
sh>
sh>   FreeBSD doc repository (ports committer)
sh>
sh>   Modified files:
sh>     en/cgi               Makefile
sh>     share/mk             web.site.mk
sh>   Log:
sh>   Hook up files (Perl modules) for the new query-pr.cgi script. A bit of
sh>   extra code to handle the fact that the files are in subdirectories was
sh>   required.
sh>
sh>   Revision  Changes    Path
sh>   1.35      +14 -1     www/en/cgi/Makefile
sh>   1.77      +9 -1      www/share/mk/web.site.mk
sh>

 Thank you for updating the CGI script, but I do not think it is a
 good idea to add CGI_SUB{DIRS,FILES} into web.site.mk.
 Sub-directories are handled by bsd.subdir.mk, so it should be used in
 straightforward way instead of adding new variables/targets.

 What do you think about the attached patch?  I did not notice these
 changes were submitted somewhere for review before the commit...

-- Hiroki

----Next_Part(Thu_Jul_21_12_31_30_2011_575)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="www_cgi_GnatsPR-20110721-1.diff"

Index: share/mk/web.site.mk
===================================================================
RCS file: /home/ncvs/www/share/mk/web.site.mk,v
retrieving revision 1.79
diff -d -u -I \$FreeBSD:.*\$ -I \$NetBSD:.*\$ -I \$OpenBSD:.*\$ -I \$DragonFly:.*\$ -I \$Id:.*\$ -I \$Translation:.*\$ -I \$hrs:.*\$ -r1.79 web.site.mk
--- share/mk/web.site.mk	21 Jul 2011 00:42:50 -0000	1.79
+++ share/mk/web.site.mk	21 Jul 2011 03:05:01 -0000
@@ -358,14 +358,6 @@
 .endif
 .if defined(CGI) && !empty(CGI)
 	@${MKDIR} -p ${CGIINSTALLDIR}
-.if defined(CGI_SUBDIRS) && !empty(CGI_SUBDIRS)
-.for sd in ${CGI_SUBDIRS}
-	@${MKDIR} -p ${CGIINSTALLDIR}/${sd}
-.endfor
-.for sf in ${CGI_SUBFILES}
-	${INSTALL_CGI} ${.CURDIR}/${sf} ${CGIINSTALLDIR}/${sf}
-.endfor
-.endif
 .for entry in ${CGI}
 	${INSTALL_CGI} ${.CURDIR}/${entry} ${CGIINSTALLDIR}
 .endfor
Index: en/cgi/Makefile
===================================================================
RCS file: /home/ncvs/www/en/cgi/Makefile,v
retrieving revision 1.35
diff -d -u -I \$FreeBSD:.*\$ -I \$NetBSD:.*\$ -I \$OpenBSD:.*\$ -I \$DragonFly:.*\$ -I \$Id:.*\$ -I \$Translation:.*\$ -I \$hrs:.*\$ -r1.35 Makefile
--- en/cgi/Makefile	20 Jul 2011 23:52:12 -0000	1.35
+++ en/cgi/Makefile	21 Jul 2011 03:03:54 -0000
@@ -16,18 +16,6 @@
 DATA+=	cvsweb.conf-freebsd
 DATA+=	query-pr-lib.pl

-CGI_SUBDIRS=	GnatsPR GnatsPR/Section
-
-CGI_SUBFILES+=	GnatsPR/MIMEIterator.pm
-CGI_SUBFILES+=	GnatsPR/Section.pm
-CGI_SUBFILES+=	GnatsPR/Section/Email.pm
-CGI_SUBFILES+=	GnatsPR/Section/FieldStart.pm
-CGI_SUBFILES+=	GnatsPR/Section/MIME.pm
-CGI_SUBFILES+=	GnatsPR/Section/Patch.pm
-CGI_SUBFILES+=	GnatsPR/Section/StateChange.pm
-CGI_SUBFILES+=	GnatsPR/Section/Text.pm
-CGI_SUBFILES+=	GnatsPR/SectionIterator.pm
-
 CGI=
 CGI+=	confirm-code.cgi
 CGI+=	cvsweb.cgi
@@ -46,6 +34,8 @@
 CGI+=	search.cgi
 CGI+=	url.cgi

+SUBDIR=	GnatsPR
+
 .SUFFIXES:	.C .cgi

 .C.cgi:
Index: en/cgi/Makefile.inc
===================================================================
RCS file: en/cgi/Makefile.inc
diff -N en/cgi/Makefile.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ en/cgi/Makefile.inc	21 Jul 2011 03:01:08 -0000
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+WEBBASE?=	/data/cgi
+WEB_PREFIX?=	${.CURDIR}/../../..
Index: en/cgi/GnatsPR/Makefile
===================================================================
RCS file: en/cgi/GnatsPR/Makefile
diff -N en/cgi/GnatsPR/Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ en/cgi/GnatsPR/Makefile	21 Jul 2011 02:55:20 -0000
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.if exists(../Makefile.conf)
+.include "../Makefile.conf"
+.endif
+.if exists(../Makefile.inc)
+.include "../Makefile.inc"
+.endif
+
+SUBDIR=	Section
+
+DATA=	MIMEIterator.pm Section.pm
+
+.include "${WEB_PREFIX}/share/mk/web.site.mk"
Index: en/cgi/GnatsPR/Makefile.inc
===================================================================
RCS file: en/cgi/GnatsPR/Makefile.inc
diff -N en/cgi/GnatsPR/Makefile.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ en/cgi/GnatsPR/Makefile.inc	21 Jul 2011 03:02:07 -0000
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+WEBBASE?=	/data/cgi/GnatsPR
+WEB_PREFIX?=	${.CURDIR}/../../../..
Index: en/cgi/GnatsPR/Section/Makefile
===================================================================
RCS file: en/cgi/GnatsPR/Section/Makefile
diff -N en/cgi/GnatsPR/Section/Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ en/cgi/GnatsPR/Section/Makefile	21 Jul 2011 03:03:00 -0000
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.if exists(../Makefile.conf)
+.include "../Makefile.conf"
+.endif
+.if exists(../Makefile.inc)
+.include "../Makefile.inc"
+.endif
+
+DATA=	Email.pm FieldStart.pm MIME.pm Patch.pm StateChange.pm Text.pm
+
+.include "${WEB_PREFIX}/share/mk/web.site.mk"

----Next_Part(Thu_Jul_21_12_31_30_2011_575)----

----Security_Multipart0(Thu_Jul_21_12_31_30_2011_292)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEABECAAYFAk4nnZIACgkQTyzT2CeTzy2vyACfZSF0IjA7UGNDF//gFPr2pU0a
SyUAn0jnejuPkPHMlp8yeALU91rPJWG/
=Mawx
-----END PGP SIGNATURE-----

----Security_Multipart0(Thu_Jul_21_12_31_30_2011_292)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110721.123130.698363444164784046.hrs>