From owner-freebsd-ports@FreeBSD.ORG Sat Feb 27 10:47:43 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35B38106566B for ; Sat, 27 Feb 2010 10:47:43 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id E8EE88FC16 for ; Sat, 27 Feb 2010 10:47:42 +0000 (UTC) Received: from mobileKamikaze.norad (unknown [88.130.213.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 2CB658A1702; Sat, 27 Feb 2010 11:47:25 +0100 (CET) Message-ID: <4B88F83D.30909@bsdforen.de> Date: Sat, 27 Feb 2010 11:47:25 +0100 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.8) Gecko/20100226 Thunderbird/3.0.2 MIME-Version: 1.0 To: Michael Reifenberger References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: dougb@dougbarton.us, FreeBSD-Ports Subject: Re: portmaster usage for a list of ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 10:47:43 -0000 On 27/02/2010 11:10, Michael Reifenberger wrote: > Hi, > for compiling a list of ports inside a emulated FreeBSD-current environment > I would need to use portmaster as: > > cat ./myports.txt | xargs portmaster -r -R -G -g -d -m "WITHOUT_GSSAPI=YES" > (myports.txt contains a list of to be installed/updated ports) Useless use of cat. xargs < ./myports.txt portmaster ... > Unfortunately this doesn't work (specifying -m "BATCH=yes" doesn't help > too). xargs(1) holds the solution, this one will work: xargs -o < ./myports.txt portmaster ... -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?