From owner-freebsd-ports Thu Feb 20 10:45:54 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C46137B401 for ; Thu, 20 Feb 2003 10:45:53 -0800 (PST) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FC6543F85 for ; Thu, 20 Feb 2003 10:45:51 -0800 (PST) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.12) id 18lvha-0000ao-00; Thu, 20 Feb 2003 20:45:46 +0200 Date: Thu, 20 Feb 2003 20:45:46 +0200 From: Sheldon Hearn To: Simon 'portlint' Schubert Cc: ports@freebsd.org Subject: Re: [PATCH] makesum should not change ownership of distinfo Message-ID: <20030220184546.GC13372@starjuice.net> References: <20030218100516.GE823@starjuice.net> <20030220192508.165e1fad.corecode@corecode.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030220192508.165e1fad.corecode@corecode.ath.cx> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On (2003/02/20 19:25), Simon 'portlint' Schubert wrote: > > - @if [ -f ${MD5_FILE} ]; then ${RM} -f ${MD5_FILE}; fi > > + @if [ -f ${MD5_FILE} ]; then ${CAT} /dev/null > ${MD5_FILE}; fi > > how about: > @if [ -f ${MD5_FILE} ]; then > ${MD5_FILE}; fi > > should work too. I didn't do that because, 1) I find it less readable, and 2) I've hit a shell that couldn't do it before, although I can't for the life of me remember which one. That said, I don't care about the implementation; so long as the behaviour changes as requested. :-) Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message