From owner-freebsd-ports Wed Aug 21 03:31:52 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA28584 for ports-outgoing; Wed, 21 Aug 1996 03:31:52 -0700 (PDT) Received: from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA28578 for ; Wed, 21 Aug 1996 03:31:49 -0700 (PDT) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.7.5/8.6.9) id DAA07390; Wed, 21 Aug 1996 03:30:56 -0700 (PDT) Date: Wed, 21 Aug 1996 03:30:56 -0700 (PDT) Message-Id: <199608211030.DAA07390@silvia.HIP.Berkeley.EDU> To: andrew@ugh.net.au CC: ports@freebsd.org In-reply-to: (message from Andrew on Wed, 21 Aug 1996 20:16:09 +1000 (EST)) Subject: Re: distfiles as shar archives From: asami@freebsd.org (Satoshi Asami) Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * > You can use sed to cut off the lines you don't need before piping it * > to sh. Either use a pattern match, or just count the number of lines * > and do a sed -e '1,10d' kind of thing. * * Ok...thanks. I wasn't sure if 'complex' commands were the done thing in * port makefiles. It's quite simple, as it's done by string substitution. bsd.port.mk will only put them together in one line and give it to sh, who then thinks what to do ("hmm, this looks like a pipe 'cause it has a |, the text leading up to this was..."). Satoshi