]> git.donarmstrong.com Git - bin.git/blob - update_mobile_org
automatically call mr and commit when necessary
[bin.git] / update_mobile_org
1 #!/bin/bash
2
3 TMPDIR=~/tmp
4 export TMPDIR
5 . ~/.ssh/ssh_agent_info_$(hostname)
6 LOCKOPTS=-q
7 if [ -n "$PS1" ]; then
8     LOCKOPTS=-f;
9 fi;
10 mr -d org-mode up;
11 with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs -f 'org-mobile-push' -f 'org-mobile-pull'
12 mr -d org-mode commit -m'org mobile automated commit and push';