blob: bac1ae3fdb1d2aa1d899b476f8afaf3ea48c3455 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
set -e
# TODO should also save *.md files in ~/doc .. maybe just save all
# files under ~/doc?
save-org-buffers
cd ~/doc/
# don't do anything if waiting on a manual merge; don't want just
# blanket commit that merge
gstatus=$(git status)
if [[ $gstatus =~ 'You have unmerged paths.' ]]; then
exit 0
fi
# this command should never fail and stop mr
git add org/*.org \
papers/*.{org,md,bib} \
newpapers/*/*.org \
dissert/*.md pres/*.md letters/*.tex \
emacs-abbrevs emacs-bookmarks \
emacs-diary archive/emacs-diary-* \
notes/days/*.org notes/*.org \
|| true
# this command should never fail and stop mr
git commit -a -m "auto commit on $(hostname -s)" || true
|