add mirrors sites to readme
[james-home.git] / .mrconfig
blob04d708055a97d3e120c19c0f30469da903c87812
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 || ! full
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 checkout = git clone https://git.jamestechnotes.com/r/james/home/cron.git .cron-stage
62 [.plus]
63 skip = lazy
64 checkout = git clone https://git.jamestechnotes.com/r/james/home/home-plus .plus
67 [.hide]
68 skip = lazy
70 [src]
71 skip = lazy
72 chain = true
73 checkout = git clone https://git.jamestechnotes.com:/r/james/home/src.git
75 [src-private]
76 skip = lazy
77 chain = true
78 checkout = :
80 [src01]
81 skip = lazy
82 chain = true
83 checkout = :
84 update = [ -d .git ] || git pull "$@"
86 [lib/finance]
87 skip = lazy
88 checkout = :
89 chain = true
91 [doc]
92 skip = lazy
93 checkout = :
94 chain = true
96 [.repomirror]
97 # abuse git and mr to mirror repos to gitlab, github and bitbucket
98 skip = lazy
99 order = 1000
100 checkout = :
101 update = :
102 chain = true