summaryrefslogtreecommitdiff
path: root/archive/lib-src/mr/config
blob: bc8fa61d7cbab60dac83e08c18d713ed729b5ffe (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# -*- mode: conf -*-

[DEFAULT]

# avoid hangs due to SSH connection sharing
jobs = 1

lib =
    tucson() {
        on artemis shortgeese athena hephaestus iris melete
    }

# --- run a command on athena in a sane environment

lib =
    athena_cmd () {
        # here we rely on the fact that ssh already passes argument
        # through `/bin/sh -c' (note use of single-quotes in this
        # function)
        ssh athena 'cd $HOME/'"$1"' && . $HOME/.profile && '"$2"
    }

[src/propellor]
checkout = git clone demeter:propellor propellor --branch spw3conf
post_checkout =
    cd propellor
    # get new release tags for merging into 'spw3conf' and 'debian' branches
    git remote add -f upstream https://git.joeyh.name/git/propellor.git ||:
    # This hook sets up .dir-locals.el to make it easier to follow
    # Propellor's coding style.  We have to use a hook because
    # .dir-locals.el and the cabal sandbox must be nuked when working
    # with dgit on the 'debian' branch
    install-git-hooks propellor
    echo ".dir-locals.el" >>.git/info/exclude
fixups =
    # check that the link isn't already in place before making the link
    # because otherwise we get an infinite loop of links that breaks propellor
    [ -L ~/.propellor ] || ln -sf ~/src/propellor ~/.propellor
    # my preferences when using propellor for configuring my own machines
    git config propellor.spin-branch spw3conf
    git config propellor.forbid-dirty-spin true
    git config --local sendemail.to "Joey Hess <propellor@joeyh.name>"
skip = lazy

[src/grml-live]
checkout = git clone demeter:grml-live -b spw/std
post_checkout =
    cd grml-live
    git remote add -f upstream github:grml/grml-live ||:
fixups = git config commit.gpgsign true
skip = lazy

[lib/rt]
checkout = git clone athenag:rt.git rt
post_checkout =
    cd rt
    git annex init
    if [ -d "$(hostname -s)" ]; then
        mkdir -p $HOME/local/rt
        cd $HOME/local/rt
        touch .duplicity-ignore
        mkdir -p session incomplete
        if ! [ -e "complete" ]; then
            ln -s $HOME/lib/rt/complete complete
        fi
        if ! [ -e "watch" ]; then
            ln -s $HOME/lib/rt/$(hostname -s) watch
        fi
    fi
status = git annex status --fast
update = git annex sync --no-content origin
push = git annex sync --no-content origin
autoci = (git annex add . && git commit -m "auto commit on $(hostname -s)") || true
fixups =
    git config push.default matching
    # git config gcrypt.publish-participants true
    git config remote.origin.gcrypt-publish-participants true
    git config remote.origin.gcrypt-participants 0x0F56D0553B6D411B
    git config annex.startupscan false
    git config annex.autocommit true # needed for `git annex sync`
    git config remote.origin.annex-ignore true
    git config spwhitton.unpushed-tags.ignore true

skip = lazy
pre_update = mr autoci

[.fmail]
checkout =
    mkdir ~/.fmail
    movemymail
sync = movemymail
update = movemymail
push = movemymail
status = :
clean = :
commit = :
record = :
fetch = :
diff = :
log = :
grep = :
autoci = :
isclean = :
skip = ! [ -e "$HOME/local/auth/fmailsyncpass" ]

# this is slower than other repos for which sync is defined, so have
# it go last
order = 12