diff options
author | linimon <linimon@FreeBSD.org> | 2009-11-13 07:48:22 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2009-11-13 07:48:22 +0800 |
commit | b3e00225eab8cbe52b2129348c78cb3b1858fcbe (patch) | |
tree | ccbb6de3412fd57a9c3bc9964f90fd40253b2321 /Tools | |
parent | e4066c330e9af6f17a932e43c834ffa85ec12e9d (diff) | |
download | freebsd-ports-gnome-b3e00225eab8cbe52b2129348c78cb3b1858fcbe.tar.gz freebsd-ports-gnome-b3e00225eab8cbe52b2129348c78cb3b1858fcbe.tar.zst freebsd-ports-gnome-b3e00225eab8cbe52b2129348c78cb3b1858fcbe.zip |
Parameterize.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/makeworld | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Tools/portbuild/scripts/makeworld b/Tools/portbuild/scripts/makeworld index 4260efa15a4c..30275ace8bee 100755 --- a/Tools/portbuild/scripts/makeworld +++ b/Tools/portbuild/scripts/makeworld @@ -26,6 +26,12 @@ export TARGET_ARCH=${arch} # Workaround needed for zfs - 20090321 erwin export NO_FSCHG=1 +# experimental: uncomment these 4 to test with clang +#export WITH_CLANG=1 +#export NO_WERROR=1 +#export WERROR=1 +#export WITH_CLANG_IS_CC=1 + case "$branch" in 6*) export SRCBRANCH="-r RELENG_6" @@ -82,19 +88,19 @@ echo "==> Starting make buildworld" make buildworld ${args} || exit $? echo "==> Cleaning up chroot" -rm -rf /var/chroot/ -chflags -R noschg /var/chroot/ -rm -rf /var/chroot/ -mkdir /var/chroot/ +rm -rf ${worlddir}/ +chflags -R noschg ${worlddir}/ +rm -rf ${worlddir}/ +mkdir ${worlddir}/ echo "==> Starting make installworld" if [ "$client" = "0" ]; then export NEWSPARC_TIMETYPE=__int64_t - make installworld DESTDIR=/var/chroot || exit $? + make installworld DESTDIR=${worlddir} || exit $? echo "==> Starting make distribute" - make DESTDIR=/var/chroot distrib-dirs && \ - make DESTDIR=/var/chroot distribution || exit $? + make DESTDIR=${worlddir} distrib-dirs && \ + make DESTDIR=${worlddir} distribution || exit $? else echo "==> Not doing installworld of client source tree" |