From owner-freebsd-arch Wed Aug 30 8:57:35 2000 Delivered-To: freebsd-arch@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id B146B37B43E; Wed, 30 Aug 2000 08:57:27 -0700 (PDT) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id SAA53265; Wed, 30 Aug 2000 18:56:58 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.9.3/8.9.3) id SAA32939; Wed, 30 Aug 2000 18:56:45 +0300 (EEST) (envelope-from phantom) Date: Wed, 30 Aug 2000 18:56:45 +0300 From: Alexey Zelkin To: Sheldon Hearn Cc: arch@freebsd.org, committers@freebsd.org Subject: Re: NO vs NO_ Message-ID: <20000830185645.A32496@ark.cris.net> References: <200008301026.DAA50313@pike.osd.bsdi.com> <27283.967631991@axl.fw.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <27283.967631991@axl.fw.uunet.co.za>; from sheldonh@uunet.co.za on Wed, Aug 30, 2000 at 12:39:51PM +0200 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Wed, Aug 30, 2000 at 12:39:51PM +0200, Sheldon Hearn wrote: > In my opinion, the only technical issue worth discussing is whether the > change is expected to be merged onto the RELENG_4 branch. If it's a > straight conversion, you'll make life difficult for lots of people. > However, if you were to put magic in the RELENG_4 mk files (when the > time came), you could translate deprecated names into their new names, > possibly even generating warnings for each translation. I thought to use construction like that: ALLOW_DEPRECATED = true DEPRECATED_VARS = CLEAN CLEANDIR CRYPT PROFILE SECURE GAMES INFO LIBC_R .for var in ${DEPRECATED_VARS} .if defined(NO${var}) .if defined(ALLOW_DEPRECATED) && !empty(ALLOW_DEPRECATED) NO_${var}=${NO${var}} .else @echo "The variable NO${var} is deprecated, use NO_${var} instead" @/usr/bin/false .endif .endif .endfor -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message