Changeset 219


Ignore:
Timestamp:
Aug 21, 2002, 6:25:49 AM (18 years ago)
Author:
landonf (Landon Fuller)
Message:

Support dist_subdir

Location:
trunk/base/src/port1.0
Files:
2 edited

Legend:

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

    r218 r219  
    1313
    1414# define options: distname master_sites
    15 options master_sites patch_sites extract_sufx distfiles extract_only patchfiles dist_subdir use_zip use_bzip2
     15options master_sites patch_sites extract_sufx distfiles extract_only patchfiles use_zip use_bzip2
    1616
    1717proc suffix {distname} {
  • trunk/base/src/port1.0/portmain.tcl

    r214 r219  
    1313register com.apple.main provides main
    1414
     15# define options
     16options portname portversion portrevision categories maintainers workdir worksrcdir no_worksubdir filedir distname sysportpath libpath dist_subdir distpath
     17
    1518# XXX Special case sysportpath. This variable is set by the bootstrap
    1619# and may not exist
     
    1821        default distpath $sysportpath/distfiles
    1922}
     23
    2024default prefix /usr/local/
    2125default workdir work
     
    2529default os_version $tcl_platform(osVersion)
    2630
    27 # define options
    28 options portname portversion portrevision categories maintainers workdir worksrcdir no_worksubdir filedir distname sysportpath libpath
    29 
    3031proc main {args} {
    31     global worksrcdir main_opts portname distname
     32    global worksrcdir main_opts portname distname distpath dist_subdir
    3233
    3334    if {[tbool no_worksubdir]} {
     
    3839        }
    3940    }
     41    if {[info exists distpath] && [info exists dist_subdir]} {
     42        puts hello
     43        set distpath ${distpath}/${dist_subdir}
     44    }
     45
    4046    return 0
    4147}
Note: See TracChangeset for help on using the changeset viewer.