aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2009-11-13 04:24:35 +0000
committerMark Linimon <linimon@FreeBSD.org>2009-11-13 04:24:35 +0000
commit8d20989476ccc1b30a1e46b631f7048ae4671bd9 (patch)
treef80c1da986d43e98806e6d207b9c4940324abb11 /Tools
parentbb3a6e69dc9c7aa145a9a68bf160b139c229cc44 (diff)
downloadports-8d20989476ccc1b30a1e46b631f7048ae4671bd9.tar.gz
ports-8d20989476ccc1b30a1e46b631f7048ae4671bd9.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/makeworld17
-rwxr-xr-xTools/portbuild/scripts/mkbindist5
2 files changed, 12 insertions, 10 deletions
diff --git a/Tools/portbuild/scripts/makeworld b/Tools/portbuild/scripts/makeworld
index 30275ace8bee..dd5b5ccf06d4 100755
--- a/Tools/portbuild/scripts/makeworld
+++ b/Tools/portbuild/scripts/makeworld
@@ -87,20 +87,21 @@ fi
echo "==> Starting make buildworld"
make buildworld ${args} || exit $?
-echo "==> Cleaning up chroot"
-rm -rf ${worlddir}/
-chflags -R noschg ${worlddir}/
-rm -rf ${worlddir}/
-mkdir ${worlddir}/
+echo "==> Cleaning up destdir"
+destdir=${worlddir}/${arch}/${branch}
+rm -rf ${destdir}/
+chflags -R noschg ${destdir}/
+rm -rf ${destdir}/
+mkdir -p ${destdir} || exit $?
echo "==> Starting make installworld"
if [ "$client" = "0" ]; then
export NEWSPARC_TIMETYPE=__int64_t
- make installworld DESTDIR=${worlddir} || exit $?
+ make installworld DESTDIR=${destdir} || exit $?
echo "==> Starting make distribute"
- make DESTDIR=${worlddir} distrib-dirs && \
- make DESTDIR=${worlddir} distribution || exit $?
+ make DESTDIR=${destdir} distrib-dirs && \
+ make DESTDIR=${destdir} distribution || exit $?
else
echo "==> Not doing installworld of client source tree"
diff --git a/Tools/portbuild/scripts/mkbindist b/Tools/portbuild/scripts/mkbindist
index 8326c6250906..9191d3d4a6bb 100755
--- a/Tools/portbuild/scripts/mkbindist
+++ b/Tools/portbuild/scripts/mkbindist
@@ -48,7 +48,8 @@ cleandir ${tmpdir}
mkdir -p ${tmpdir}
# Copy the files into the tmpdir from an existing built world
-cd ${worlddir}; find -dx . | \
+destdir=${worlddir}/${arch}/${branch}
+cd ${destdir}; find -dx . | \
grep -v -E '^./usr/(local|obj|opt|ports|src)' | \
grep -v '^./home' | \
grep -v '^./var/db/pkg' | \
@@ -64,7 +65,7 @@ if [ -s "${here}/bindist/dirlist" ]; then
cat "${here}/bindist/dirlist" | xargs mkdir -p
fi
# XXX MCL seems to be obsoleted by individual files in clients/?
-if [ -d ${here}/bindist/files ]; do
+if [ -d ${here}/bindist/files ]; then
cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir}
fi