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