From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mehul Sanghvi Subject: Dynamicaly #+INCLUDE files Date: Tue, 12 Aug 2014 01:05:54 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013d1e684b8d8c050067a0a9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH4My-0005Yp-Uk for emacs-orgmode@gnu.org; Tue, 12 Aug 2014 01:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XH4HU-0006ls-7S for emacs-orgmode@gnu.org; Tue, 12 Aug 2014 01:06:22 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:35990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH4HT-0006jP-SX for emacs-orgmode@gnu.org; Tue, 12 Aug 2014 01:05:56 -0400 Received: by mail-wg0-f45.google.com with SMTP id x12so9289926wgg.28 for ; Mon, 11 Aug 2014 22:05:54 -0700 (PDT) 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: ML Emacs-orgmode --089e013d1e684b8d8c050067a0a9 Content-Type: text/plain; charset=UTF-8 I have a directory which has multiple sub-directories. The sub-directories contain files, some of which I want included into my org file when I export it for publishing to HTML using C-c C-e P p to publish. Rather than manually adding the files I want to an Org file, Is there a way to dynamically include the files and have them processed by the publishing exporter ? Something along the lines of: for file in *.c *.cpp *.m *.java *.lisp do echo #+INCLUDE the file done Is there a way to do what I'm looking for ? -- Mehul N. Sanghvi email: mehul.sanghvi@gmail.com --089e013d1e684b8d8c050067a0a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I have a directory which has multiple sub-d= irectories. =C2=A0The sub-directories contain files, some of which I want i= ncluded into my org file when I export it for publishing to HTML
using = C-c C-e P p to publish.

Rather than manually adding the files I want to an Org = file, Is there a way to dynamically
include the files and have th= em processed by the publishing exporter ? =C2=A0Something=C2=A0
a= long the lines of:

=C2=A0 =C2=A0 =C2=A0 for file in *.c *.cpp *.m *.java *= .lisp
=C2=A0 =C2=A0 =C2=A0 do
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0echo #+INCLUDE the file
=C2=A0 =C2=A0 =C2=A0 done
=

Is there a way to do what I'm looking for ?=C2=A0


--
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com
--089e013d1e684b8d8c050067a0a9--