From owner-freebsd-current Wed Mar 5 14:55:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E1C737B401; Wed, 5 Mar 2003 14:55:45 -0800 (PST) Received: from mail2.qc.uunet.ca (mail2.qc.uunet.ca [198.168.54.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FEB843F3F; Wed, 5 Mar 2003 14:55:43 -0800 (PST) (envelope-from anarcat@espresso-com.com) Received: from xtanbul.studio.espresso-com.com ([216.94.147.57]) by mail2.qc.uunet.ca (8.9.3/8.9.3) with ESMTP id RAA25095; Wed, 5 Mar 2003 17:55:38 -0500 Received: from anarcat by xtanbul.studio.espresso-com.com with local (Exim 3.36 #1 (Debian)) id 18qhnQ-0006hI-00; Wed, 05 Mar 2003 17:55:32 -0500 Date: Wed, 5 Mar 2003 17:55:32 -0500 From: The Anarcat To: Doug Barton Cc: Adrian Steinmann , current@freebsd.org, subscriber@insignia.com, "Jacques A. Vidrine" Subject: Re: Plea for base system trim Message-ID: <20030305225532.GG24059@xtanbul> References: <200303051700.SAA06561@marabu.marabu.ch> <20030305142412.D50404@12-234-22-23.pyvrag.nggov.pbz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030305142412.D50404@12-234-22-23.pyvrag.nggov.pbz> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed Mar 05, 2003 at 02:29:00PM -0800, Doug Barton wrote: > On Wed, 5 Mar 2003, Adrian Steinmann wrote: > > > > > I use this command in my build script to force apache13+modssl to use > > the openssl in base. > > > > # Use base openssl (OpenSSL 0.9.7a as of Feb 19 2003) > > cd /usr/ports/www/apache13-modssl > > cp Makefile Makefile- > > sed -ie 's/^\.include.*Makefile\.ssl.*$/OPENSSLBASE=\/usr/' Makefile- >Makefile > > You could instead do: > > sed Makefile > makefile > > The lowercase makefile will be used by make in preference to Makefile. Juste jumping in... Couldn't you just: sed -i.orig -e Makefile For example: anarcat@carthage[~]% cat > foo this is a test anarcat@carthage[~]% sed -i.orig -e 's/test/gizmo/' foo anarcat@carthage[~]% diff -u foo.orig foo --- foo.orig Wed Mar 5 17:54:09 2003 +++ foo Wed Mar 5 17:54:13 2003 @@ -1 +1 @@ -this is a test +this is a gizmo Much simpler, unless I missed something. A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message