[MacPorts] Migration modified

MacPorts noreply at macports.org
Tue Apr 20 13:02:23 PDT 2010


Changed page "Migration" by dweber at macports.org from 206.176.233.167*
Page URL: <http://trac.macports.org/wiki/Migration>
Diff URL: <http://trac.macports.org/wiki/Migration?action=diff&version=25>
Revision 25

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 24)
+++ Migration (version: 25)
@@ -66,3 +66,23 @@
 $ # Remove the '&& \' from the last line of the file.
 $ ./myports.bash
 }}}
+
+Another possibility is this script, which will list all the ports on one {{{sudo port install}}} command, rather than a separate command for each port.
+
+{{{
+$ cat myports.txt | /usr/bin/sed \
+ -e 's/@[._0-9]*//' \
+ -e 's/(active)//' \
+ -e 's/+/ +/g' \
+ -e 's/[+]darwin[_i0-9]*//g' \
+ -e 's/+macosx//g' \
+ -e 's/+i386//g' \
+ -e 's/+gcc[0-9]*//' \
+ -e '$q;s/$/ \\/' \
+ -e 's/.*currently installed:.*/#!\/bin\/bash/' \
+ -e '/\bin\/bash/ a\
+ sudo port install \\
+' > myports.bash
+$ chmod +x myports.bash
+$ ./myports.bash
+}}}

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on Migration. If it was not you, please
report to .


More information about the macports-changes mailing list