emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Orgmode] org-publish.el version 1.77: now with preparation-function feature
@ 2006-09-07 14:27 David O'Toole
  0 siblings, 0 replies; only message in thread
From: David O'Toole @ 2006-09-07 14:27 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: carsten.dominik


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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-07 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-07 14:27 [Orgmode] org-publish.el version 1.77: now with preparation-function feature David O'Toole

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).