]> git.donarmstrong.com Git - bin.git/blobdiff - update_org_ical
handle multiple files to transfer in copy_from
[bin.git] / update_org_ical
index eebb11a50a8cf1e9a05e88ebafc9bc363cde9608..c60652070526380cfb1a759f7cd37c87d2ebc860 100755 (executable)
@@ -7,9 +7,11 @@ LOCKOPTS=-q
 if [ -n "$PS1" ]; then
     LOCKOPTS=-f;
 fi;
-with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacs --batch -l ~/.emacs \
+with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
+yes|with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacs --batch -l ~/.emacs \
     --eval '(setq org-icalendar-combined-description "Don Armstrong’s Calendar (org-mode)")' \
     --eval '(setq org-icalendar-combined-name "Don Armstrong (org-mode)")' \
     --eval "(setq org-icalendar-combined-agenda-file \"$TMPDIR/org.ics\")" \
-    --funcall 'org-icalendar-combine-agenda-files'
+    --eval '(org-icalendar-combine-agenda-files)' \
+    --eval '(org-save-all-org-buffers)';
 with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical rsync -av "$TMPDIR/org.ics" rzlab.ucr.edu:debian/.google_ical*/org.ics