Skip to content
Browse files

Populate ${destroot} with prefix.mtree and macosx.mtree, then prune w…

…hen done.

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Feb 25, 2003
1 parent b9561dc commit b3c9996d2c2a5b646782bf978d90abd3651f109f
Showing with 9 additions and 2 deletions.
  1. +1 −0 doc/Makefile
  2. +8 −2 src/port1.0/portinstall.tcl
@@ -22,6 +22,7 @@ install:
install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTDIR}${ETCDIR}; \
install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${ETCDIR}
mkdir -p ${INSTALLDIR}/share/darwinports/resources/port1.0/install
install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
install -o ${DSTUSR} -g ${DSTGRP} -m 644 macosx.mtree ${INSTALLDIR}/share/darwinports/resources/port1.0/install/
install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${INSTALLDIR}/man/man7
@@ -55,11 +55,14 @@ default install.destroot {DESTDIR=${destroot}}
set UI_PREFIX "---> "

proc install_start {args} {
global UI_PREFIX portname destroot
global UI_PREFIX prefix portname destroot portresourcepath

ui_msg "$UI_PREFIX [format [msgcat::mc "Installing %s"] ${portname}]"

file mkdir ${destroot}
file mkdir "${destroot}"
system "cd ${destroot} && mtree -d -e -U -f ${portresourcepath}/install/macosx.mtree"
file mkdir "${destroot}/${prefix}"
system "cd \"${destroot}/${prefix}\" && mtree -d -e -U -f ${portresourcepath}/install/prefix.mtree"

proc install_element {src_element dst_element} {
@@ -131,6 +134,9 @@ proc install_main {args} {
proc install_registry {args} {
global portname portversion portpath categories description long_description homepage depends_run installPlist package-install uninstall workdir worksrcdir prefix UI_PREFIX destroot

# Prune empty directories in ${destroot}
catch {system "find \"${destroot}\" -depth -type d -print | xargs rmdir"}

# Install ${destroot} contents into /
directory_dig ${destroot} ${destroot}

0 comments on commit b3c9996

Please sign in to comment.
You can’t perform that action at this time.