diff weave.sh @ 6:5370428e673e

experimenting with a perlscript for weaving
author Robert McIntyre <rlm@mit.edu>
date Mon, 24 Oct 2011 09:29:17 -0700
parents 4824087ce1f2
children ce96610fe058
line wrap: on
line diff
     1.1 --- a/weave.sh	Mon Oct 24 08:31:37 2011 -0700
     1.2 +++ b/weave.sh	Mon Oct 24 09:29:17 2011 -0700
     1.3 @@ -3,34 +3,11 @@
     1.4  # assumes ./org directory with org files to publish to 
     1.5  # ./html
     1.6  
     1.7 -#target=$(readlink -f $1)
     1.8 +target=$(readlink -f $1)
     1.9  
    1.10  dir=`pwd`
    1.11  
    1.12 -# emacs  \
    1.13 -# -l /home/r/config/emacs/clojure-init.el \
    1.14 -# -l /home/r/config/emacs/org-init.el \
    1.15 -# -l /home/r/config/emacs/web-color.el \
    1.16 -# --batch \
    1.17 -# --eval "
    1.18 -# (progn
    1.19 -# (setq org-publish-project-alist
    1.20 -#       '(
    1.21 -# 	(\"project\"
    1.22 -# 	 :base-directory \"$dir/org\"
    1.23 -# 	 :base-extension \"org\"
    1.24 -# 	 :publishing-directory \"$dir/html\"
    1.25 -# 	 :recursive t
    1.26 -# 	 :publishing-function org-publish-org-to-html
    1.27 -# 	 :auto-preamble t)
    1.28 -# 	))
    1.29 -
    1.30 -# (org-publish-project \"project\"))" \
    1.31 -# \
    1.32 -# 2>&1 #| pcregrep 'Wrote'
    1.33 -
    1.34 -
    1.35 -emacsclient  \
    1.36 +emacsclient \
    1.37  --eval "
    1.38  (progn
    1.39  (setq org-publish-project-alist
    1.40 @@ -44,8 +21,20 @@
    1.41  	 :auto-preamble t)
    1.42  	))
    1.43  
    1.44 -(org-publish-project \"project\"))" \
    1.45 +(org-publish-file \"$target\" '(\"project\"
    1.46 +	 :base-directory \"$dir/org\"
    1.47 +	 :base-extension \"org\"
    1.48 +	 :publishing-directory \"$dir/html\"
    1.49 +	 :recursive t
    1.50 +	 :publishing-function org-publish-org-to-html
    1.51 +	 :auto-preamble t)
    1.52 +	))" \
    1.53 +\
    1.54 +2>&1 #| pcregrep 'Wrote'
    1.55  
    1.56  
    1.57  
    1.58  
    1.59 +
    1.60 +
    1.61 +