From owner-freebsd-ports Sun Oct 31 16: 9:43 1999 Delivered-To: freebsd-ports@freebsd.org Received: from tricord.system.pl (tricord.system.pl [195.205.185.10]) by hub.freebsd.org (Postfix) with ESMTP id 8684A14F6C for ; Sun, 31 Oct 1999 16:09:11 -0800 (PST) (envelope-from saper@system.pl) Received: from localhost (saper@localhost [127.0.0.1]) by tricord.system.pl (SYSTEM Internet) with ESMTP id BAA16433 for ; Mon, 1 Nov 1999 01:09:09 +0100 (MET) Date: Mon, 1 Nov 1999 01:09:05 +0100 (MET) From: Marcin Cieslak To: ports@FreeBSD.ORG Subject: Re: gif2png: 'optional' dependencies In-Reply-To: <19991031152242.B23583@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 31 Oct 1999, David O'Brien wrote: > > pre-install: > > $(SED) -e "s/%%PREFIX%%/$(PREFIX)/" < infile >outfile > > A much cleaner way is: > > ${PERL} -pi.orig -e "s:/usr/bin/python:${PREFIX}/bin/python:" \ > /path_to_file_to_change I finally did it with sed and mv, one command more, but no bloatware :)) -- << Marcin Cieslak // saper@system.pl >> ----------------------------------------------------------------- SYSTEM Internet Provider http://www.system.pl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message