openjade autodetection patch

Pav Lucistnik pav at FreeBSD.org
Wed Aug 17 10:56:41 UTC 2005


Would anyone object to the attached patch? It automates the task of
setting SGMLNORM to openjade's equivalent for people who can't or don't
want to install jade.

As a side-effect it changes the behaviour for people who have both jade
and openjade installed. Is that a problem?

RCS file: /home/dcvs/www/share/mk/web.site.mk,v
retrieving revision 1.65
diff -a -u -r1.65 web.site.mk
--- web.site.mk 1 Mar 2005 23:04:59 -0000       1.65
+++ web.site.mk 17 Aug 2005 07:26:15 -0000
@@ -50,10 +50,10 @@
 LOCALBASE?=	/usr/local
 PREFIX?=	${LOCALBASE}

-.if !defined(OPENJADE)
-SGMLNORM?=	${PREFIX}/bin/sgmlnorm
-.else
+.if exists(${PREFIX}/bin/osgmlnorm)
 SGMLNORM?=	${PREFIX}/bin/osgmlnorm
+.else
+SGMLNORM?=	${PREFIX}/bin/sgmlnorm
 .endif
 CATALOG?=	${PREFIX}/share/sgml/html/catalog
 SGMLNORMOPTS?=	-d ${SGMLNORMFLAGS} -c ${CATALOG} -D ${.CURDIR}


-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

Fufie> snow should be on the tv and in the mountains, not here
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20050817/c31fa3d9/attachment.sig>


More information about the freebsd-doc mailing list