From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 25 16:02:58 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C81C4106564A for ; Wed, 25 Jul 2012 16:02:56 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8D73E8FC0C for ; Wed, 25 Jul 2012 16:02:56 +0000 (UTC) Received: by obbun3 with SMTP id un3so1647741obb.13 for ; Wed, 25 Jul 2012 09:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tie4r6D6/UI5nH5ttjCcdTbk8bhlvHksO01O1K2Jk2s=; b=gg5mzjDCplEPk+ZGrYwFGT/rGhhuPSLQK6MTiIITS8uVgPGqVNYQkd2HuWa6FCdTI/ ne4hOJrch+C2ZQIay+SW3awMP3je+UK0Q+aCJKllijrLmsvcRu2VqPJIjS3o39O0Bicm qLVEhR/gXcBWzkFHFRUlZhV53PzUfVE+jkpqrXgaIOYBYCQ2yabYlQX4xVjHFBmEHG+E S07neMrn8/43vsGKcB0bM14fbBUv+1Tj/oWEUw4otz0jz/RT3JQfPhluwEjN5d3lHW90 xRJ5BJWhnryiBSMLOVeLAZZNcw7qT8eJ3VRxqqP0MXu88qDzNt6KXgAHwr8wXl6N6mFz ip3A== MIME-Version: 1.0 Received: by 10.182.8.6 with SMTP id n6mr18439565oba.39.1343232175984; Wed, 25 Jul 2012 09:02:55 -0700 (PDT) Received: by 10.76.84.7 with HTTP; Wed, 25 Jul 2012 09:02:55 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Jul 2012 09:02:55 -0700 Message-ID: From: Garrett Cooper To: Brandon Falk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Pre-make and Post-make scripts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 16:02:58 -0000 On Wed, Jul 25, 2012 at 5:49 AM, Brandon Falk wrote: > I'm curious as to how the best way of having a script run before and after > make would be done. Would this require modification of the FreeBSD make > template, or is this functionality already built in? > > The goal of this is to set up a script that prior to a build sends up a > filesystem in ram (tmpfs) for the build to occur in, and afterwards saves > the filesystem from ram onto the actual disk for backup/archiving. We all > know that our poor disks could use a little break from the strain of build > processes. Or just mount MAKEOBJDIRPREFIX (defaults to /usr/obj) in a swap backed disk / tmpfs? Cheers, -Garrett