From e32c64b6a798407acb4ad8d15f00a6e101a97604 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sun, 20 Jul 2008 18:13:42 -0700 Subject: [PATCH] Add example script for publishing a single file to ikiwiki. --- examples/ikiwiki/publish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/ikiwiki/publish diff --git a/examples/ikiwiki/publish b/examples/ikiwiki/publish new file mode 100644 index 0000000..3b1086f --- /dev/null +++ b/examples/ikiwiki/publish @@ -0,0 +1,11 @@ +#!/bin/bash +# +# Publish a single file by connecting to a daemonized Emacs instance. + +if test -z "$1"; then + echo >&2 "Error: Not enough arguments" + exit 1 +fi + +file=$(echo "$1" | sed -e 's/"/\\"/g') +emacsclient --eval "(muse-ikiwiki-publish \"$file\")" -- 2.11.4.GIT