[MacPorts] Migration modified

MacPorts noreply at macports.org
Tue Apr 20 16:54:32 PDT 2010


Changed page "Migration" by jmr at macports.org from 123.243.246.165*
Page URL: <http://trac.macports.org/wiki/Migration>
Diff URL: <http://trac.macports.org/wiki/Migration?action=diff&version=30>
Revision 30
Comment: remove sed script section as it doesn't really improve on the rest of the content

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 29)
+++ Migration (version: 30)
@@ -44,49 +44,3 @@
 chmod +x restore_ports.tcl
 sudo ./restore_ports.tcl myports.txt
 }}}
-
-=== Convert myports.txt into an install script (EXPERIMENTAL) === #sed_script
-
-These sed scripts will get close to coverting myports.txt into an installation script.  It will not arrange the order of the installation according to the dependency tree and it cannot check the most recent variants against those of the installed ports.  It will strip away any variants with '+darwin*', '+macosx' or '+i386', because any platform or architecture variants should be determined automatically.  The {{{myports.bash}}} file should be reviewed carefully and the variant specifications should be compared with the output from {{{port variants <aPort>}}}.  Some ports may have a long list of +variant options, but they might all be replaced with a {{{+huge}}} variant.  Also look for duplicate ports with different versions, some of them might not be required (e.g., {{{docbook-xml-*}}}).
-
-The following will output {{{myports.bash}}} with {{{'&& \'}}} at the end of each command line.  This will effectively create one long command line, with contingent installation of successive ports.  Should any one port fail to install, no others will run (e.g., try {{{ls abc.txt && cat abc.txt}}} in a directory where no file exists called {{{abc.txt}}}).  When a port fails to install, the {{{myports.bash}}} script can be edited to remove all the prior ports that are already installed.
-
-{{{
-$ cat myports.txt | /usr/bin/sed \
- -e 's/@[._0-9a-zA-Z\-]*+/+/' \
- -e 's/@[._0-9a-zA-Z \-]*(active)//' \
- -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 's/$/ \&\& \\/' \
- -e 's/^./sudo port install /' \
- -e 's/.*currently installed:.*/#!\/bin\/bash/' \
- > myports.bash
-$ chmod +x myports.bash
-$ # Remove the '&& \' from the last line of the file.
-$ ./myports.bash
-}}}
-
-This is another possibility, 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-9a-zA-Z\-]*+/+/' \
- -e 's/@[._0-9a-zA-Z \-]*(active)//' \
- -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