[MacPorts] Scripts/testport_script modified
MacPorts
noreply at macports.org
Thu May 3 06:38:05 PDT 2012
Changed page "Scripts/testport_script" by kato23 at mailinator.com from 84.163.63.48*
Page URL: <https://trac.macports.org/wiki/Scripts/testport_script>
Diff URL: <https://trac.macports.org/wiki/Scripts/testport_script?action=diff&version=13>
Revision 13
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Scripts/testport_script
=========================================================================
--- Scripts/testport_script (version: 12)
+++ Scripts/testport_script (version: 13)
@@ -9,6 +9,8 @@
#!/bin/bash
# testport -- test install a specified port in /opt/macports-test (default)
+
+# https://trac.macports.org/wiki/Scripts/testport_script
# 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
# 2. move /usr/local to ${usr_local_off} to make sure it is not interfering with the custom ${MP_PREFIX} MacPorts build process
@@ -221,6 +223,7 @@
if [[ $printpath -eq 1 ]]; then
printf '\n\n%s\n\n\n' "export PATH=\"${MP_PREFIX}/bin:${MP_PREFIX}/sbin:/usr/bin:/bin:/usr/sbin:/sbin\""
+ printf '%s\n\n\n' "alias testport='/usr/local/bin/testport'"
exit
fi
@@ -324,7 +327,7 @@
echo
# clean up previous "${MP_PREFIX}" directory
-if [[ $all_new -eq 0 ]] && [[ -x "${MP_PREFIX}/bin/port" ]]; then
+if [[ $all_new -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
@@ -359,7 +362,6 @@
port -f clean --all "$@"
port -f extract "$@"
elif [[ $build_source -eq 1 ]] && [[ $verbose -eq 1 ]]; then
- port -f clean --all "$@"
port -f -s -v install "$@"
elif [[ $build_source -eq 1 ]] && [[ $debug -eq 1 ]]; then
port -f -s -d install "$@"
-------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