3 ORG_GREP='-e .org$ -e .org_archive$ -e .org_done$'
5 if [ "x$1" == "xdoit" ]; then
6 if git status --porcelain|grep '^ M'|grep -q $ORG_GREP; then
7 git commit -m'update org files' $(mr --no-recurse status |grep '^ M'|grep $ORG_GREP|sed 's/^ M//g');
8 if [ "$2" != "commit" ]; then
13 emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
14 mr -d ~ -j5 run update_org_files doit;