[MacPorts] Scripts/testport_script modified

MacPorts noreply at macports.org
Fri May 4 05:45:30 PDT 2012


Changed page "Scripts/testport_script" by kato23 at mailinator.com from 84.163.57.168*
Page URL: <https://trac.macports.org/wiki/Scripts/testport_script>
Diff URL: <https://trac.macports.org/wiki/Scripts/testport_script?action=diff&version=14>
Revision 14

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Scripts/testport_script
=========================================================================
--- Scripts/testport_script (version: 13)
+++ Scripts/testport_script (version: 14)
@@ -23,7 +23,8 @@
 # usage:
 # testport gawk
 # testport -n -l /opt/macports-gnu gawk
-# testport -c -r -e -v clang-3.1
+# testport -r clang-3.1
+# testport -c -e -v clang-3.1
 # testport -s clang-3.1
 # testport -c -r openal configure.cc='/opt/macports-test/bin/clang-mp-3.1' configure.cxx='/opt/macports-test/bin/clang++-mp-3.1'
 
@@ -40,7 +41,7 @@
 -h: help
 -n: delete /opt/macports-test (default) & perform a new MacPorts install from scratch
 -p: print PATH variable value
--r: remove / uninstall specified port before reinstalling it
+-r: remove / uninstall specified port and exit
 -s: build and install from source only
 -u: update MacPorts system and upgrade outdated ports (cleans work directories)
 -v: enable verbose mode
@@ -327,7 +328,7 @@
 echo
 
 # clean up previous "${MP_PREFIX}" directory
-if [[ $all_new -eq 0 ]] && [[ $build_source -eq 0 ]] && [[ -x "${MP_PREFIX}/bin/port" ]]; then
+if [[ $all_new -eq 0 ]] && [[ $remove -eq 0 ]] && [[ $build_source -eq 0 ]] && [[ -x "${MP_PREFIX}/bin/port" ]]; then
    if [[ $clean_all -eq 1 ]]; then
       do_clean_all
    elif [[ -d "$(port dir "$@")/work" ]]; then
@@ -349,6 +350,7 @@
    elif [[ -d "$(port dir "$@")/work" ]]; then
       port -f clean --all "$@"
    fi
+   exit
 fi
 
 

-------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 Scripts/testport_script. If it was not you, please
report to .


More information about the macports-changes mailing list