40 | | # Change this if your installation is somewhere else. |
41 | | # (There should be a way to get the port command to report this.) |
42 | | MACPORTS_HOME=/opt/local |
43 | | # Execute the restore_ports script. |
44 | | sudo ./restore_ports.tcl -p $MACPORTS_HOME myports.txt |
45 | | if [[ ! $dontPreserveRequestedFlags ]] ; then |
46 | | sudo port unsetrequested installed |
47 | | < requested.txt xargs sudo port setrequested |
48 | | fi |
| 39 | sudo bash << EOF |
| 40 | # Start with the latest data. |
| 41 | port selfupdate |
| 42 | # Uninstall all installed ports. |
| 43 | port -f uninstall installed |
| 44 | # Clean any partially-completed builds. |
| 45 | port clean all |
| 46 | # Change this if your installation is somewhere else. |
| 47 | # (There should be a way to get the port command to report this.) |
| 48 | MACPORTS_HOME=/opt/local |
| 49 | # Execute the restore_ports script. |
| 50 | ./restore_ports.tcl -p $MACPORTS_HOME myports.txt |
| 51 | if [[ ! $dontPreserveRequestedFlags ]] ; then |
| 52 | port unsetrequested installed |
| 53 | < requested.txt xargs port setrequested |
| 54 | fi |
| 55 | EOF |