]> git.madduck.net Git - code/myrepos.git/blob - mrconfig

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add ability to skip doing eg, updates, more frequently than a specified number of...
[code/myrepos.git] / mrconfig
1 # An example config file for the mr(1) command.
2
3 [DEFAULT]
4 # Teach mr how to run svn cleanup.
5 cleanup = if [ -d "$MR_REPO"/.svn ]; then svn cleanup ; fi
6 # And how to run git gc
7 gc = if [ -d "$MR_REPO"/.git ]; then git gc; fi
8 # Tests used in the skips below.
9 # - wantsrc checks whether I probably want a full source checkout (quite
10 #   large)
11 # - private are hosts I trust private data to
12 # - mylaptop only succeeds if it's on my main development laptop, which 
13 #   gets lots of extra cruft
14 # - kite only succeeds on kite
15 lib =                                                                   \
16         wantsrc() {                                                     \
17                 test "$(whoami)" = joey                                 \
18         }                                                               \
19         private() {                                                     \
20                 if [ "$(whoami)" = joey ]; then                         \
21                         case "$(hostname)" in                           \
22                         wren|kodama|dragon|dodo|bluebird)               \
23                                 return 0                                \
24                         ;;                                              \
25                         esac                                            \
26                 fi                                                      \
27                 return 1                                                \
28         }                                                               \
29         mylaptop() {                                                    \
30                 test "$(hostname)" = kodama                             \
31         }                                                               \
32         kite() {                                                        \
33                 test "$(hostname)" = wren                               \
34         }                                                               \
35
36 [src/mr]
37 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/mr
38 skip = ! wantsrc
39
40 [src/linux-2.6]
41 checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
42 skip = ! mylaptop || ! wantsrc || \
43         ([ "$1" = update ] && [ $(hours_since "$1") -lt 12 ])
44
45 [src/dpkg]
46 # A merge of the upstream dpkg git repo and my own personal branch.
47 checkout = \
48         git clone git://git.debian.org/git/dpkg/dpkg.git && \
49         cd dpkg && \
50         git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg && \
51         git fetch kite && \
52         git checkout -b sourcev3 kite/sourcev3
53 update = git pull origin master && git pull kite sourcev3
54 commit = git push kite
55 skip = ! wantsrc
56
57 [html/www.debian.org]
58 # Still in CVS..urk!
59 checkout = \
60         CVSROOT=:ext:joeyh@cvs.debian.org:/cvs/webwml \
61         cvs co -d www.debian.org webwml
62 # cvs sucks sufficiently that I prefer to run these commands by hand,
63 # and only rarely
64 update = echo "skipping cvs update (too slow)"
65 status = echo "skipping cvs status (too ugly)"
66 skip = ! mylaptop || ! wantsrc
67
68 [src/packages/uqm]
69 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm
70 skip = ! wantsrc
71
72 [src/packages/uqm-content]
73 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm-content
74 skip = ! wantsrc
75
76 [src/packages/uqm-voice]
77 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm-voice
78 skip = ! wantsrc
79
80 [src/packages/uqm-music]
81 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm-music
82 skip = ! wantsrc
83
84 # My home directory, which I keep in svn.
85 []
86 checkout = svn co svn+ssh://svn.kitenet.net/srv/svn/joey/trunk/home-$(hostname) joey
87 # run svnfix after each update
88 update = svn update && svnfix
89
90 [mail]
91 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/mail
92 skip = ! private
93
94 [doc]
95 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/doc
96 skip = ! private
97
98 [lib/text]
99 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/text
100 skip = ! wantmedia