From cef3a38ffbacc0128fe0b7c5cd31ef5fbfb007b7 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 14 Sep 2006 05:17:12 +0000 Subject: [PATCH] * Use SRCBASE for source location * The 5.x variant for populating /etc does not work on 6.x and above, and vice versa. Conditionalize old and new methods. --- Tools/portbuild/scripts/makeworld | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Tools/portbuild/scripts/makeworld b/Tools/portbuild/scripts/makeworld index 7ed0ee0052c8..2e4bc2e3e9c3 100755 --- a/Tools/portbuild/scripts/makeworld +++ b/Tools/portbuild/scripts/makeworld @@ -35,12 +35,13 @@ while [ $# -gt 0 ]; do done if [ "$client" = "1" ]; then - cd ${pb}/${arch}/src-client + SRCBASE=${pb}/${arch}/src-client shift 1 else - cd ${pb}/${arch}/${branch}/src + SRCBASE=${pb}/${arch}/${branch}/src export __MAKE_CONF=/dev/null fi +cd ${SRCBASE} if [ "$nocvs" = "0" ]; then echo "==> Updating source tree" @@ -76,10 +77,15 @@ if [ "$client" = "0" ]; then fi echo "==> Starting make distribute" - cd etc - make obj - make all - make distribute DISTRIBUTION=/var/chroot/ + if [ "$branch" = "5" ]; then + cd etc + make obj + make all + make distribute DISTRIBUTION=/var/chroot/ + else + make DESTDIR=/var/chroot distrib-dirs && + make DESTDIR=/var/chroot distribution + fi error=$? if [ "$error" != "0" ]; then exit $error