[74655] trunk/base/src/port/port.tcl
jmr at macports.org
jmr at macports.org
Sun Dec 26 10:35:37 PST 2010
Revision: 74655
http://trac.macports.org/changeset/74655
Author: jmr at macports.org
Date: 2010-12-26 10:35:31 -0800 (Sun, 26 Dec 2010)
Log Message:
-----------
add 'logfile' action to print location of port log file(s)
Modified Paths:
--------------
trunk/base/src/port/port.tcl
Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl 2010-12-26 18:35:21 UTC (rev 74654)
+++ trunk/base/src/port/port.tcl 2010-12-26 18:35:31 UTC (rev 74655)
@@ -3546,6 +3546,15 @@
puts $portfile
}
+ logfile {
+ set logfile [file join [macports::getportlogpath $portdir] "main.log"]
+ if {[file isfile $logfile]} {
+ puts $logfile
+ } else {
+ ui_error "Log file not found for port in $portdir"
+ }
+ }
+
gohome {
set homepage ""
@@ -3790,6 +3799,7 @@
cd [list action_portcmds [ACTION_ARGS_PORTS]] \
url [list action_portcmds [ACTION_ARGS_PORTS]] \
file [list action_portcmds [ACTION_ARGS_PORTS]] \
+ logfile [list action_portcmds [ACTION_ARGS_PORTS]] \
gohome [list action_portcmds [ACTION_ARGS_PORTS]] \
\
fetch [list action_target [ACTION_ARGS_PORTS]] \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101226/3aa4c4ab/attachment.html>
More information about the macports-changes
mailing list