From: David O'Toole <dto@gnu.org>
To: emacs-orgmode@gnu.org
Cc: carsten.dominik@gmail.com
Subject: [Orgmode] org-publish.el version 1.77: now with preparation-function feature
Date: Thu, 07 Sep 2006 10:27:47 -0400 [thread overview]
Message-ID: <m3ac5bpx98.fsf@gnu.org> (raw)
I've added a small new feature to org-publish.el version 1.77,
available from http://dto.freeshell.org/e/org-publish.el
There is a new project keyword called :preparation-function. Its value
should be a function with no arguments, which will be called to
"prepare" a project for publishing. An example usage is to call GNU
Make to update files that need processing, before publishing the
resultant files.
I use this to publish tarballs on my website. Here is the project
definition I use to make that happen:
> '("packages"
> :base-directory "~/packages/"
> :base-extension "gz"
> :publishing-directory "/ssh:dto@tty.freeshell.org:~/html/packages/"
> :publishing-function org-publish-attachment
> :preparation-function (lambda ()
> (call-process "make" nil nil nil
> "--makefile"
> "/home/dto/packages/Makefile")))
This causes the *.gz to be updated when neccessary (according to the
makefile) and then any updated *.gz are uploaded to the web server.
--
David O'Toole
dto@gnu.org
http://dto.freeshell.org/notebook/
reply other threads:[~2006-09-07 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ac5bpx98.fsf@gnu.org \
--to=dto@gnu.org \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).