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 <pattern> 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 <pattern> Makefile

For example:

[EMAIL PROTECTED] cat > foo                  
this is a test
[EMAIL PROTECTED] sed -i.orig -e 's/test/gizmo/' foo 
[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to