summaryrefslogtreecommitdiff
path: root/sync-to-pieni
blob: cc927efe0b1f84f4cd568a474e58fbfa2bbb101c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

for dir in $HOME/GTD $HOME/Journal/src $HOME/checklists
do
    echo "$dir"
    (
        set -e
        cd "$dir"
        if ! bzr diff > /dev/null
        then
            bzr commit --quiet -m 'commit from sync-to-pieni'
        fi
        bzr merge --pull
        bzr push
    )
    echo
done