From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Wightman Subject: Re: Not overwriting unchanged source code files when tangling Date: Fri, 18 Nov 2011 11:14:29 -0600 Message-ID: References: <874ny19y4o.fsf@hermes.hocat.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRS1L-0004lA-KY for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 12:14:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRS1G-0002IK-NL for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 12:14:35 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:65266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRS1G-0002IG-Ji for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 12:14:30 -0500 Received: by ywp17 with SMTP id 17so3337283ywp.0 for ; Fri, 18 Nov 2011 09:14:30 -0800 (PST) In-Reply-To: <874ny19y4o.fsf@hermes.hocat.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tom Prince Cc: Holger Hoefling , emacs-orgmode@gnu.org On Fri, Nov 18, 2011 at 10:46 AM, Tom Prince wrot= e: > On Fri, 18 Nov 2011 08:23:18 -0600, Brian Wightman wrote: >> Perhaps a way to deal with this would be to tangle to a different >> directory, and then sync any changes into your compilation source >> directory. =A0If you would update the compilation directory only when >> something differs from the tangle directory, then make could handle it >> from that point on. > > The tangle mechanism could probably handle this autoatically. i.e. not > saving a file if the contents are identical. If there is not a lot of extra memory / time overhead associated with this, I could see this being a valid approach. I would request that, if implemented, this be placed behind an on/off switch. The makefile could also handle this with something along these lines (correct the leading space -> tab conversion as well as proper macro definitions): tangleflag: totangle.org $(TANGLECOMMAND) totangle.org $(TOUCH) tangleflag syncflag: tangleflag $(SYNCCOMMAND) sourcedir tangledir $(TOUCH) syncflag --Brian