Ignore:
Timestamp:
Oct 26, 2003, 8:27:15 PM (15 years ago)
Author:
fkr
Message:

Bug:
Submitted by:
Reviewed by:
Approved by: discussed with landonf@
Obtained from:

  • adds binaryInPath to portutil.tcl, can be used to look for binaries that

exist in path. if found full path + binary is returned, otherwise an empty string
is returned

  • look for extract.cmd in portextract.tcl, not all platforms have bzip2 by default
  • look for pbxbuild/xcodebuild in path, portbuild.tcl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portutil.tcl

    r3655 r3818  
    10301030    return $size;
    10311031}
     1032
     1033proc binaryInPath {binary} {
     1034    global env
     1035    foreach dir [split $env(PATH) :] {
     1036        if {[file executable [file join $dir $binary]]} {
     1037            return [file join $dir $binary]
     1038        }
     1039    }
     1040   
     1041    return "";
     1042}
Note: See TracChangeset for help on using the changeset viewer.