From owner-cvs-all Fri Jun 14 10:25:15 2002 Delivered-To: cvs-all@freebsd.org Received: from sdns.kv.ukrtel.net (sdns.kv.ukrtel.net [195.5.27.246]) by hub.freebsd.org (Postfix) with ESMTP id 3A40337B40C; Fri, 14 Jun 2002 10:25:05 -0700 (PDT) Received: from vega.vega.com (195.5.51.243 [195.5.51.243]) by sdns.kv.ukrtel.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M7SJ6J8L; Fri, 14 Jun 2002 20:27:07 +0300 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g5EHOvb12542; Fri, 14 Jun 2002 20:24:57 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3D0A271B.88E448C4@FreeBSD.org> Date: Fri, 14 Jun 2002 20:25:47 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Juli Mallett Cc: Akinori MUSHA , Trevor Johnson , Mikhail Teterin , Pete Fritchman , portmgr@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: ports/Mk bsd.port.mk References: <200206141102.50292.mi+mx@aldan.algebra.com> <20020614113752.K11520-100000@blues.jpj.net> <86k7p16c4q.wl@archon.local.idaemons.org> <20020614101409.A88549@FreeBSD.ORG> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Juli Mallett wrote: > > * Akinori MUSHA escriuróres > > At Fri, 14 Jun 2002 11:49:51 -0400 (EDT), > > Trevor Johnson wrote: > > > Mikhail Teterin wrote: > > > > > > > But the macro could be implemented without using the -i option -- > > > > mktemp(1) is with us since FreeBSD-2.2.7... > > > > > > That sounds like the best idea. I don't know how to write such a macro > > > though. Would you mind writing it? > > > > How about writing inplace(1) instead? It should be generally useful > > because you can use any filter command such as sed(1), awk(1), > > grep(1), sort(1), uniq(1), and so on with it. The name and the > > sinopsis would be a matter of controversy, though. > > sed 's/foo/bar/;s/blah/bleh/' file | tee file > /dev/null What if there are several files? -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message