<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 8, 2014 at 6:26 PM, Jerry <span dir="ltr"><<a href="mailto:lanceboyle@qwest.net" target="_blank">lanceboyle@qwest.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I redirected this output to .txt files. Do you have a quick way (script) to use these echoed files during reinstallation?</blockquote>
</div><br>I don't need to do it often enough to script it, I generally build it on the fly :)</div><div class="gmail_extra"><br></div><div class="gmail_extra"> port echo active and requested | perl -lpe 's/[ \t]+\@[^-+]+/ /; s/^/port install /'</div>
<div class="gmail_extra"><div><br></div><div>Output is something you can feed to /bin/sh, via sudo; you may want to check it for sanity and possibly add/remove some things manually. One thing it doesn't deal with is possible changes in default variants, because it's difficult to script. For example, the default perl5 variant has changed from +perl5_12 to +perl5_16 within the past several months --- you may want to take the chance to upgrade stuff to the new default rather than propagating the old. It also doesn't try to deal with dependencies, so there is some chance that a dependency of something earlier in the list will install with default variants something later in the list with an explicit variant; there's no good way to deal with this in MacPorts currently, especially when variants can alter dependencies (and I'm not sure that a "good way to deal with this" even exists).</div>
<div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>