# HG changeset patch # User Robert McIntyre # Date 1319474498 25200 # Node ID ce96610fe058ce756d60d648f40e23cc26ae93fe # Parent 5370428e673ed75049ce8a7c395c8a9c4d045967 perl script is amazing diff -r 5370428e673e -r ce96610fe058 auto-weave.pl --- a/auto-weave.pl Mon Oct 24 09:29:17 2011 -0700 +++ b/auto-weave.pl Mon Oct 24 09:41:38 2011 -0700 @@ -21,8 +21,7 @@ my $e = shift; my $name = $e->fullname; print "$name was modified\n" if $e->IN_MODIFY; - ` - + `weave $name`; }); diff -r 5370428e673e -r ce96610fe058 old-weave.sh --- a/old-weave.sh Mon Oct 24 09:29:17 2011 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -#!/bin/sh - -# assumes ./org directory with org files to publish to -# ./html - -#target=$(readlink -f $1) - -dir=`pwd` - -emacs \ --l /home/r/config/emacs/clojure-init.el \ --l /home/r/config/emacs/org-init.el \ --l /home/r/config/emacs/web-color.el \ ---batch \ ---eval " -(progn -(setq org-publish-project-alist - '( - (\"project\" - :base-directory \"$dir/org\" - :base-extension \"org\" - :publishing-directory \"$dir/html\" - :recursive t - :publishing-function org-publish-org-to-html - :auto-preamble t) - )) - -(org-publish-project \"project\"))" \ -\ -2>&1 #| pcregrep 'Wrote' - - - - diff -r 5370428e673e -r ce96610fe058 weave-all.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/weave-all.sh Mon Oct 24 09:41:38 2011 -0700 @@ -0,0 +1,34 @@ +#!/bin/sh + +# assumes ./org directory with org files to publish to +# ./html + +#target=$(readlink -f $1) + +dir=`pwd` + +emacs \ +-l /home/r/config/emacs/clojure-init.el \ +-l /home/r/config/emacs/org-init.el \ +-l /home/r/config/emacs/web-color.el \ +--batch \ +--eval " +(progn +(setq org-publish-project-alist + '( + (\"project\" + :base-directory \"$dir/org\" + :base-extension \"org\" + :publishing-directory \"$dir/html\" + :recursive t + :publishing-function org-publish-org-to-html + :auto-preamble t) + )) + +(org-publish-project \"project\"))" \ +\ +2>&1 #| pcregrep 'Wrote' + + + + diff -r 5370428e673e -r ce96610fe058 weave.sh --- a/weave.sh Mon Oct 24 09:29:17 2011 -0700 +++ b/weave.sh Mon Oct 24 09:41:38 2011 -0700 @@ -5,7 +5,9 @@ target=$(readlink -f $1) -dir=`pwd` +org=`dirname $target` + +dir=`dirname $org` emacsclient \ --eval "