From a4382288c9b8758879548a966d0ae35570b863ed Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 30 Dec 2013 14:13:55 -0800 Subject: [PATCH] add update_org_ical function --- update_org_ical | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 update_org_ical diff --git a/update_org_ical b/update_org_ical new file mode 100755 index 0000000..eebb11a --- /dev/null +++ b/update_org_ical @@ -0,0 +1,15 @@ +#!/bin/bash + +TMPDIR=~/tmp +export TMPDIR +. ~/.ssh/ssh_agent_info_$(hostname) +LOCKOPTS=-q +if [ -n "$PS1" ]; then + LOCKOPTS=-f; +fi; +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' +with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical rsync -av "$TMPDIR/org.ics" rzlab.ucr.edu:debian/.google_ical*/org.ics -- 2.39.5