From owner-cvs-ports Mon Nov 11 22:13:46 1996 Return-Path: owner-cvs-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA25260 for cvs-ports-outgoing; Mon, 11 Nov 1996 22:13:46 -0800 (PST) Received: from sequent.kiae.su (sequent.kiae.su [193.125.152.6]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA25245; Mon, 11 Nov 1996 22:13:34 -0800 (PST) Received: by sequent.kiae.su id AA21991 (5.65.kiae-2 ); Tue, 12 Nov 1996 10:06:59 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Tue, 12 Nov 96 10:06:57 +0400 Received: (from ache@localhost) by nagual.ru (8.8.2/8.8.2) id JAA00748; Tue, 12 Nov 1996 09:06:28 +0300 (MSK) Message-Id: <199611120606.JAA00748@nagual.ru> Subject: Re: cvs commit: ports/news/tin Makefile ports/news/tin/files md5 ports/news/tin/patches patch-aa In-Reply-To: <199611120434.UAA09559@silvia.HIP.Berkeley.EDU> from "Satoshi Asami" at "Nov 11, 96 08:34:06 pm" To: asami@freebsd.org (Satoshi Asami) Date: Tue, 12 Nov 1996 09:06:28 +0300 (MSK) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-ports@freefall.freebsd.org From: "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" (Andrey A. Chernov) Organization: self X-Class: Fast X-Mailer: ELM [version 2.4ME+ PL28 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > DISTNAME= tin1.3-unoff-BETA-961109 > PKGNAME= tin-1.3.${DISTNAME:S/tin1.3-unoff-BETA-//} > === > > Do you mind if I replace the second line with a regular variable > assignment to PKGNAME? This is causing me a lot of headaches when you > do an upgrade, because I need to delete the old package and its name > is not available anywhere in the above for cut & paste. ;) I do it to minimize typing too: now I change only one number in distname, but with your variant I'll need to change it in two places. > In general, I think munging with :S and stuff for simple variables > like PKGNAME is not a good idea. The only times I use this is when > the two variables are very far apart in the Makefile (and so the > second is more likely to be forgotten when I do an upgrade) or when > there are many things to replace. Most complete way to not forget to change something is changing it in one place only and let make substitutions do all other changes for you. -- Andrey A. Chernov http://www.nagual.ru/~ache/