Skip to content
Permalink
Browse files

Be smarter about generating and cleaning prefix.mtree

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@2101 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Mar 1, 2003
1 parent 9ea3b31 commit 7b80666f8fcff519d7bb3b5c212dab15a116515d
Showing with 6 additions and 3 deletions.
  1. +6 −3 doc/Makefile
@@ -1,16 +1,19 @@
MAN7= portfile.7 portstyle.7
INSTALLDIR= ${DESTDIR}${PREFIX}

all:
prefix.mtree:
cat prefix.mtree.pre | sed -e "s/uname=UNAME/uname=${DSTUSR}/" | \
sed -e "s/gname=GNAME/gname=${DSTGRP}/" > prefix.mtree

all: prefix.mtree

clean:
rm -f prefix.mtree

install:
mkdir -p ${DESTDIR}${ETCDIR}
mkdir -p ${INSTALLDIR}

cat prefix.mtree.pre | sed -e "s/uname=UNAME/uname=${DSTUSR}/" | \
sed -e "s/gname=GNAME/gname=${DSTGRP}/" > prefix.mtree
cat prefix.mtree | mtree -U -d -e -p ${INSTALLDIR} > /dev/null
@if [ ! -e ${DESTDIR}/${ETCDIR}/ports.conf ]; then \
set -x; \

0 comments on commit 7b80666

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