Subject: Re: yes/no vs. YES/NO in mk.conf
To: Ingolf Steinbach <ingolf.steinbach@jena-optronik.de>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 10/24/2002 12:40:43
On Thu, Oct 24, 2002 at 01:38:47PM +0200, Ingolf Steinbach wrote:
> 
> is there a consensus wrt to yes/no settings in /etc/mk.conf?
> Reading mk.conf's man page, I got the impression that lower
> case is used. However, I found out that I have to set
> USE_CUPS=YES (uppercase "yes") to make kdelibs3 use cups.

I've been moving away from tests like:

	.if ${USE_FOO} == "YES"

and toward tests like:

	.if !empty(USE_FOO:M[yY][eE][sS])	# ${USE_FOO} == "YES"

It's slightly less readable, but allows either YES or yes or any other
permutation of upper and lowercase to work.

	Cheers,

	-- Johnny Lam <jlam@netbsd.org>