From mboxrd@z Thu Jan 1 00:00:00 1970 From: regcl Subject: Re: :exclude sub folder in org-publish Date: Wed, 06 Aug 2014 18:23:18 -0400 Message-ID: <87vbq5z295.fsf@channing.harvard.edu> References: <87y4wsl062.fsf@channing.harvard.edu> <8761jpl6gl.fsf@bzg.ath.cx> <878undv1j7.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF9g8-0006K7-T6 for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 18:27:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF9fx-0003DN-Uu for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 18:27:28 -0400 Received: from mail-qg0-f41.google.com ([209.85.192.41]:62012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF9fx-0003DG-RC for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 18:27:17 -0400 Received: by mail-qg0-f41.google.com with SMTP id q107so3512265qgd.14 for ; Wed, 06 Aug 2014 15:27:17 -0700 (PDT) In-Reply-To: <878undv1j7.fsf@bzg.ath.cx> (Bastien's message of "Mon, 28 Jul 2014 17:49:48 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > Hi, > > regcl writes: > >> I could not figure out how to do this from INFO. I found examples of >> preventing publishing of specific file extensions, but not whole >> directories. > > Unless my memory fails me, :exclude works on names, not just on > extensions. So maybe using both :recursive and :exclude can lead > to what you want. Yes that matches my understanding and experience. But I could not figure out how to, for example in this tree ... ~/A . +--proj | +--.git | +--README.org | | +--Manuscript | | | +--.git | | | +--README.org | | | +--drafts | | | +--GenomicsData | | | | +--.git | | | | +--README.org ... publish the README's above GenomicsData, but not in GenomicsData. But maybe this is asking too much of org-mode publish. FWIW, I ended up using a recursive sub- make harness with something like this in the Makefile ... .PHONY: html html: README.html # export org file to html %.html: %.org emacs --batch --load=~/.emacs $*.org --eval='(org-html-export-to-html)' Best, George