From owner-freebsd-questions@FreeBSD.ORG Thu Sep 6 01:59:09 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30B80106564A for ; Thu, 6 Sep 2012 01:59:09 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from ozzie.tundraware.com (ozzie.tundraware.com [75.145.138.73]) by mx1.freebsd.org (Postfix) with ESMTP id E1F848FC12 for ; Thu, 6 Sep 2012 01:59:07 +0000 (UTC) Received: from [192.168.0.2] (viper.tundraware.com [192.168.0.2]) (authenticated bits=0) by ozzie.tundraware.com (8.14.5/8.14.5) with ESMTP id q861wwvI028416 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 5 Sep 2012 20:58:58 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <50480361.8030601@tundraware.com> Date: Wed, 05 Sep 2012 20:58:57 -0500 From: Tim Daneliuk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Bryan Drewery References: <5047E804.7050406@tundraware.com> <5047ED29.2040001@shatow.net> In-Reply-To: <5047ED29.2040001@shatow.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (ozzie.tundraware.com [192.168.0.1]); Wed, 05 Sep 2012 20:58:58 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: q861wwvI028416 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Somewhat OT: Using Pipes Inside a GNU Make File X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 01:59:09 -0000 On 09/05/2012 07:24 PM, Bryan Drewery wrote: > On 9/5/2012 7:02 PM, Tim Daneliuk wrote: >> A bit off topic, but I'm kind of stuck. I am using gmake and want to >> do something like this: >> >> FOO := $(shell a | b | c) >> >> But this appears not to work. Only the 'a' command is executed. The >> remainder >> of the pipeline is ignored. Is there some clean way to implement this >> kind of thing? >> >> > > I use this in a GNUMakefile and it works fine. > > BRANCH := $(shell git branch --no-color | grep "^*" | sed -e 's/^\* //') > > > You may need to post a more specific example. > > Bryan> _______________________________________________ Here's the line that is failing: 2LATEX = $(shell which rst2latex.py rst2latex | tr '\012' ' ' | awk '{print $1}') --stylesheet=parskip -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/