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