Ticket #33629: patch-port-option-e.diff
File patch-port-option-e.diff, 4.0 KB (added by pixilla (Bradley Giesbrecht), 13 years ago) |
---|
-
src/port/port.tcl
43 43 proc print_usage {{verbose 1}} { 44 44 global cmdname 45 45 set syntax { 46 [-bcd fknopqRstuvy] [-D portdir] [-F cmdfile] action [privopts] [actionflags]46 [-bcdefknopqRstuvy] [-D portdir] [-F cmdfile] action [privopts] [actionflags] 47 47 [[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]... 48 48 } 49 49 … … 4281 4281 set opts [string range $arg 1 end] 4282 4282 foreach c [split $opts {}] { 4283 4283 switch -- $c { 4284 e { 4285 set ui_options(ports_env) yes 4286 } 4284 4287 v { 4285 4288 set ui_options(ports_verbose) yes 4289 # verbose implies env 4290 set ui_options(ports_env) yes 4286 4291 } 4287 4292 d { 4288 4293 set ui_options(ports_debug) yes 4289 4294 # debug implies verbose 4290 4295 set ui_options(ports_verbose) yes 4296 # debug implies env 4297 set ui_options(ports_env) yes 4291 4298 } 4292 4299 q { 4293 4300 set ui_options(ports_quiet) yes … … 4703 4710 # Save off a copy of the environment before mportinit monkeys with it 4704 4711 global env boot_env 4705 4712 array set boot_env [array get env] 4706 4707 4713 global argv0 4708 4714 global cmdname 4709 4715 set cmdname [file tail $argv0] … … 4753 4759 puts "$errorInfo" 4754 4760 fatal "Failed to initialize MacPorts, $result" 4755 4761 } 4762 if {[info exists macports::ui_options(ports_env)]} { 4763 puts "---> PATH: $boot_env(PATH)" 4764 } 4756 4765 4757 4766 # Set up some global state for our code 4758 4767 global current_portdir -
src/macports1.0/macports.tcl
638 638 if {[regexp {^(\w+)([ \t]+(.*))?$} $line match option ignore val] == 1} { 639 639 if {[lsearch $bootstrap_options $option] >= 0} { 640 640 set macports::$option [string trim $val] 641 if {[info exists macports::ui_options(ports_env)]} { 642 puts "---> ${option}: [string trim $val]" 643 } 641 644 global macports::$option 642 645 } 643 646 } … … 682 685 } 683 686 } 684 687 lappend sources [concat [list $url] $flags] 688 if {[info exists macports::ui_options(ports_env)]} { 689 puts "---> sources_conf: [lindex $sources end]" 690 } 685 691 } else { 686 692 ui_warn "$sources_conf specifies invalid source '$line', ignored." 687 693 } … … 715 721 if {![info exists variations($opt)]} { 716 722 set variations($opt) $sign 717 723 } 724 if {[info exists macports::ui_options(ports_env)]} { 725 puts "---> variants_conf: ${sign}${opt}" 726 } 718 727 } else { 719 728 ui_warn "$variants_conf specifies invalid variant syntax '$arg', ignored." 720 729 } -
doc/port.1
236 236 .Ar targets : 237 237 .Sh OPTIONS 238 238 .Bl -tag -width -indent 239 .It Fl e 240 environment mode (generate environment messages) 239 241 .It Fl v 240 verbose mode (generate verbose messages) 242 verbose mode (generate verbose messages, implies 243 .Fl e ) 241 244 .It Fl d 242 245 debug mode (generate debugging messages, implies 243 .Fl v )246 .Fl v e ) 244 247 .It Fl q 245 248 quiet mode (suppress messages) 246 249 .It Fl n