Merge branch 'master' of https://git.jamestechnotes.com/r/james/home/home
[james-home.git] / .mrconfig
blobbe98e627c741a7646e24886972a032006fa94fa4
1 [DEFAULT]
2 fossil_update = fossil update
3 lib = 
4          hostname="$(hostname)"
5          whoami="$(whoami)"
6          on()
7            {
8              for host in $@; do
9                if [ "${host%@*}" != "${host#*@}" ]; then
10                  if [ "$whoami" != "${host%@*}" ]; then
11                    continue
12                  fi
13                  host="${host#*@}"
14                fi
15                if [ "$hostname" = "$host" ]; then
16                  return 0
17                fi
18              done
19              return 1
20            } 
21          # full primary workstation and others to serve as backups
22          full()
23            {
24              test "$whoami" = james && on thor
25            }
26          wantmail()
27            {
28              test "$whoami" = james && on thor
29            }
30 [.]
31 order = 1
32 checkout = git clone https://git.jamestechnotes.com/r/james/home/home.git .
34 # Dummy target to create Maildir. Doesn't run offlineimap as I have cron do that
35 [Maildir]
36 #update = :
37 chain = true
38 skip = lazy
39 checkout = mkdir Maildir Maildir/cur Maildir/new Maildir/tmp; chmod 700 Maildir
40 #status = :
41 #push = :
43 #Temp file.
44 [tmp]
45 fixups = $HOME/bin/fixups
46 checkout = mkdir -p $HOME/tmp
47 status = :
48 update = :
49 fetch = :
50 push = :
51 log = :
52 order = 50
54 [.etc]
55 order = 2
56 checkout = git clone https://git.jamestechnotes.com/r/james/home/home-etc.git .etc
57          
58 [.cron-stage]
59 # Move .cron to .cron-stage out of the way of mcron
60 # make this lazy as I have more hosts that won't let me run crontab.
61 skip = lazy
62 checkout = git clone https://git.jamestechnotes.com/r/james/home/cron.git .cron-stage
64 [.plus]
65 skip = lazy
66 checkout = git clone https://git.jamestechnotes.com/r/james/home/home-plus .plus
69 [.hide]
70 skip = lazy
72 [src]
73 skip = lazy
74 chain = true
75 checkout = git clone https://git.jamestechnotes.com:/r/james/home/src.git
77 [src-private]
78 skip = lazy
79 chain = true
80 checkout = :
82 [src01]
83 skip = lazy
84 chain = true
85 checkout = :
86 update = [ -d .git ] && git pull "$@"
88 [lib/finance]
89 skip = lazy
90 checkout = :
91 chain = true
93 [doc]
94 skip = lazy
95 checkout = :
96 chain = true
98 [.repomirror]
99 # abuse git and mr to mirror repos to gitlab, github and bitbucket
100 skip = lazy
101 order = 1000
102 checkout = :
103 update = :
104 status = :
105 chain = true