From owner-cvs-src-old@FreeBSD.ORG Thu Jun 18 10:39:32 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 164121065673 for ; Thu, 18 Jun 2009 10:39:32 +0000 (UTC) (envelope-from n_hibma@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 031708FC1F for ; Thu, 18 Jun 2009 10:39:32 +0000 (UTC) (envelope-from n_hibma@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5IAdVb6097232 for ; Thu, 18 Jun 2009 10:39:31 GMT (envelope-from n_hibma@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5IAdVPs097231 for cvs-src-old@freebsd.org; Thu, 18 Jun 2009 10:39:31 GMT (envelope-from n_hibma@repoman.freebsd.org) Message-Id: <200906181039.n5IAdVPs097231@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to n_hibma@repoman.freebsd.org using -f From: Nick Hibma Date: Thu, 18 Jun 2009 10:39:08 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/tools/nanobsd nanobsd.sh X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 10:39:32 -0000 n_hibma 2009-06-18 10:39:08 UTC FreeBSD src repository Modified files: tools/tools/nanobsd nanobsd.sh Log: SVN rev 194431 on 2009-06-18 10:39:08Z by n_hibma Allow building world into a separate dir (for reuse in multiple images): - buildworld and buildkernel are built into MAKEOBJDIRPREFIX - installworld and installkernel are performed on NANO_OBJ. No change of functionality if MAKEOBJDIRPREFIX is not set. If it is sea,t clean_world deletes NANO_OBJ instead of NANO_WORLDDIR. By starting nanobsd.sh with the -b option the existing world can be reused to build a new world reducing time and disk space considerably. While there: - Fix two cases where (in comments) MAKEOBJDIRPREFIX should have been NANO_DISKIMGDIR. - Simplify an 'if (not wrong); then true; else action; fi' into 'if wrong; then action; fi'. 'if ! false; then echo hello; fi' produces hello. Note: Make sure you use NANO_OBJ were you use MAKEOBJDIRPREFIX now in your nanobsd.conf files if you want to split out. Revision Changes Path 1.48 +63 -64 src/tools/tools/nanobsd/nanobsd.sh