Skip to content
Permalink
Browse files

Fix the call to mtree at build time

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@1225 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Nov 11, 2002
1 parent ef0b44c commit 28a05ba14c017a837915da87f1257b3d45f73723
Showing with 3 additions and 8 deletions.
  1. +1 −0 doc/Makefile
  2. +2 −8 src/port1.0/portinstall.tcl
@@ -11,6 +11,7 @@ clean:
install:
mkdir -p /etc/defaults
mkdir -p ${ETCDIR}
mkdir -p ${PREFIX}
mtree -U -f prefix.mtree -d -e -p ${PREFIX} > /dev/null
@if [ ! -e ${ETCDIR}/ports.conf ]; then \
set -x; \
@@ -39,11 +39,10 @@ ${com.apple.install} deplist depends_run depends_lib
${com.apple.install} set prerun install_start

# define options
options build.target.install no_mtree mtree.file
options build.target.install

# Set defaults
default build.target.install install
default mtree.file /etc/ports/prefix.mtree

set UI_PREFIX "---> "

@@ -54,12 +53,7 @@ proc install_start {args} {
}

proc install_main {args} {
global portname portversion portpath categories description depends_run contents workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current no_mtree mtree.file

# At some point this may popular $destdir instead
if {![tbool no_mtree] && [file exists ${mtree.file}]} {
system "mtree -U -f ${mtree.file} -d -e -p $prefix > /dev/null"
}
global portname portversion portpath categories description depends_run contents workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current

set build.target.current ${build.target.install}
if [catch {system "[command build]"}] {

0 comments on commit 28a05ba

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