portmaster usage for a list of ports
kamikaze at bsdforen.de
Sat Feb 27 10:47:43 UTC 2010
On 27/02/2010 11:10, Michael Reifenberger wrote:
> 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
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?
Q: What is the most annoying thing on usenet and in e-mail?
More information about the freebsd-ports