cd ~;
+emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
+
for a in $(mr list |grep 'list:'|grep -v 'finished'|awk -F'list: ' '{print $2}' 2>/dev/null); do
(cd "$a";
if git status --porcelain|grep '^ M'|grep -q $ORG_GREP; then
if [ -n "$PS1" ]; then
LOCKOPTS=-f;
fi;
+with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
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)")' \