[MacPorts] Migration modified

MacPorts noreply at macports.org
Fri Jan 29 06:47:03 PST 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=21>
Revision 21
Comment: link to restore_ports for automatic reinstall, marked experimental

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 20)
+++ Migration (version: 21)
@@ -28,21 +28,14 @@
 }}}
 Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in `myports.txt`.
 
-=== Automatically reinstall ports === #autoinstall
+=== Automatically reinstall ports (EXPERIMENTAL) === #automatic
 
-If you want to do the whole procedure automatically instead, including handling dependencies, you can run the following commands to build a Makefile for running the reinstalls in the right order.  (Not needed If you already ran the steps in the previous section.)
+A script has been written to automate Step 4 above, though it is still experimental. If it fails, you will just have to do it manually.
+
+To use it, you will first need to run steps 1-3 as described above. Then:
+ 4. Run these commands to download and execute the restore_ports script. (If you installed MacPorts from source and put its Tcl package somewhere other than /Library/Tcl, then you'll need to use the -t option when you run restore_ports.tcl; see `./restore_ports.tcl -h`.
 {{{
-port installed |grep -v '^The following' | awk '{print $1}' > myports.txt
+curl -O http://svn.macports.org/repository/macports/users/jmr/restore_ports/restore_ports.tcl
+chmod +x restore_ports.tcl
+sudo ./restore_ports.tcl myports.txt
 }}}
-{{{
-echo "all: $(cat myports.txt|tr '\n' ' ')" > Makefile.ports
-}}}
-{{{
-for port in $(cat myports.txt); do
-  echo "$port: $(port deps $port|grep Dependencies:|sed -e 's/.*Dependencies: *//;s/,//g'|tr '\n' ' ')"
-  printf "\tport -f uninstall $port\n\tport install $port\n"
-done | tee -a Makefile.ports
-}}}
-{{{
-make -f Makefile.ports
-}}}

-------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