rlm@6: #!/bin/sh rlm@6: rlm@6: # assumes ./org directory with org files to publish to rlm@6: # ./html rlm@6: rlm@6: #target=$(readlink -f $1) rlm@6: rlm@6: dir=`pwd` rlm@6: rlm@6: emacs \ rlm@6: -l /home/r/config/emacs/clojure-init.el \ rlm@6: -l /home/r/config/emacs/org-init.el \ rlm@6: -l /home/r/config/emacs/web-color.el \ rlm@6: --batch \ rlm@6: --eval " rlm@6: (progn rlm@6: (setq org-publish-project-alist rlm@6: '( rlm@6: (\"project\" rlm@6: :base-directory \"$dir/org\" rlm@6: :base-extension \"org\" rlm@6: :publishing-directory \"$dir/html\" rlm@6: :recursive t rlm@6: :publishing-function org-publish-org-to-html rlm@6: :auto-preamble t) rlm@6: )) rlm@6: rlm@6: (org-publish-project \"project\"))" \ rlm@6: \ rlm@6: 2>&1 #| pcregrep 'Wrote' rlm@6: rlm@6: rlm@6: rlm@6: