Changes between Version 18 and Version 19 of Migration


Ignore:
Timestamp:
Jan 29, 2010, 12:24:02 PM (15 years ago)
Author:
stig@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v18 v19  
    2828}}}
    2929Note 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`.
     30
     31=== Automatically reinstall ports === #autoinstall
     32
     33If 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.)
     34{{{
     35port installed |grep -v '^The following' | awk '{print $1}' > myports.txt
     36}}}
     37{{{
     38echo "all: $(cat myports.txt|tr '\n' ' ')" > Makefile.portsupgrade
     39}}}
     40{{{
     41for port in $(cat myports.txt); do
     42  echo "$port: $(port deps $port|grep Dependencies:|sed -e 's/.*Dependencies: *//;s/,//g'|tr '\n' ' ')"
     43  printf "\tport -f uninstall $port\n\tport install $port\n"
     44done | tee -a Makefile.portsupgrade
     45}}}
     46{{{
     47make -f Makefile.portsupgrade
     48}}}