Changeset 2075 for trunk/base


Ignore:
Timestamp:
Feb 25, 2003, 8:31:23 AM (21 years ago)
Author:
kevin
Message:

Populate ${destroot} with prefix.mtree and macosx.mtree, then prune when done.

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/Makefile

    r2074 r2075  
    2323        fi
    2424        install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${ETCDIR}
     25        mkdir -p ${INSTALLDIR}/share/darwinports/resources/port1.0/install
    2526        install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
    2627        install -o ${DSTUSR} -g ${DSTGRP} -m 644 macosx.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
  • trunk/base/src/port1.0/portinstall.tcl

    r1739 r2075  
    5656
    5757proc install_start {args} {
    58     global UI_PREFIX portname destroot
     58    global UI_PREFIX prefix portname destroot portresourcepath
    5959
    6060    ui_msg "$UI_PREFIX [format [msgcat::mc "Installing %s"] ${portname}]"
    6161       
    62         file mkdir ${destroot}
     62        file mkdir "${destroot}"
     63        system "cd ${destroot} && mtree -d -e -U -f ${portresourcepath}/install/macosx.mtree"
     64        file mkdir "${destroot}/${prefix}"
     65        system "cd \"${destroot}/${prefix}\" && mtree -d -e -U -f ${portresourcepath}/install/prefix.mtree"
    6366}
    6467
     
    132135    global portname portversion portpath categories description long_description homepage depends_run installPlist package-install uninstall workdir worksrcdir prefix UI_PREFIX destroot
    133136
     137        # Prune empty directories in ${destroot}
     138        catch {system "find \"${destroot}\" -depth -type d -print | xargs rmdir"}
     139
    134140    # Install ${destroot} contents into /
    135141    directory_dig ${destroot} ${destroot}
Note: See TracChangeset for help on using the changeset viewer.