Changes between Version 12 and Version 13 of Scripts/testport_script


Ignore:
Timestamp:
May 3, 2012, 1:38:04 PM (13 years ago)
Author:
kato23@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Scripts/testport_script

    v12 v13  
    1010
    1111# testport  --  test install a specified port in /opt/macports-test (default)
     12
     13# https://trac.macports.org/wiki/Scripts/testport_script
    1214
    1315# 1. move the /opt/local MacPorts system to ${opt_local_off} to make sure it is not interfering with the custom ${MP_PREFIX} MacPorts build process
     
    222224if [[ $printpath -eq 1 ]]; then
    223225   printf '\n\n%s\n\n\n' "export PATH=\"${MP_PREFIX}/bin:${MP_PREFIX}/sbin:/usr/bin:/bin:/usr/sbin:/sbin\""
     226   printf '%s\n\n\n' "alias testport='/usr/local/bin/testport'"
    224227   exit
    225228fi
     
    325328
    326329# clean up previous "${MP_PREFIX}" directory
    327 if [[ $all_new -eq 0 ]] && [[ -x "${MP_PREFIX}/bin/port" ]]; then
     330if [[ $all_new -eq 0 ]] && [[ $build_source -eq 0 ]] && [[ -x "${MP_PREFIX}/bin/port" ]]; then
    328331   if [[ $clean_all -eq 1 ]]; then
    329332      do_clean_all
     
    360363   port -f extract "$@"
    361364elif [[ $build_source -eq 1 ]] && [[ $verbose -eq 1 ]]; then
    362    port -f clean --all "$@"
    363365   port -f -s -v install "$@"
    364366elif [[ $build_source -eq 1 ]] && [[ $debug -eq 1 ]]; then