svn commit: r221419 - head/release

Ed Schouten ed at 80386.nl
Wed May 4 11:18:02 UTC 2011


Hi Nathan,

* Nathan Whitehorn <nwhitehorn at FreeBSD.org>, 20110504 04:52:
>  chroot $2 /bin/sh -c "cd /usr/src && make $MAKE_FLAGS buildworld buildkernel" || exit 1
> +chroot $2 /bin/sh -c "cd /usr/src/release && make obj" || exit 1
>  chroot $2 /bin/sh -c "cd /usr/src/release && make release" || exit 1
>  chroot $2 /bin/sh -c "cd /usr/src/release && make install DESTDIR=/R" || exit 1

Wouldn't it be a bit more elegant to do something like this?

	chroot $2 make -C /usr/src/release obj

Also, if you enable set -e, the script terminates upon error.

Greetings,
-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20110504/3bba0385/attachment.pgp


More information about the svn-src-head mailing list