]> 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:

mr register: default to registering the current directory
[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
44 [src/dpkg]
45 # A merge of the upstream dpkg git repo and my own personal branch.
46 checkout = \
47         git clone git://git.debian.org/git/dpkg/dpkg.git && \
48         cd dpkg && \
49         git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg && \
50         git fetch kite && \
51         git checkout -b sourcev3 kite/sourcev3
52 update = git pull origin master && git pull kite sourcev3
53 commit = git push kite
54 skip = ! wantsrc
55
56 [html/www.debian.org]
57 # Still in CVS..urk!
58 checkout = \
59         CVSROOT=:ext:joeyh@cvs.debian.org:/cvs/webwml \
60         cvs co -d www.debian.org webwml
61 # cvs sucks sufficiently that I prefer to run these commands by hand,
62 # and only rarely
63 update = echo "skipping cvs update (too slow)"
64 status = echo "skipping cvs status (too ugly)"
65 skip = ! mylaptop || ! wantsrc
66
67 [src/packages/uqm]
68 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm
69 skip = ! wantsrc
70
71 [src/packages/uqm-content]
72 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm-content
73 skip = ! wantsrc
74
75 [src/packages/uqm-voice]
76 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm-voice
77 skip = ! wantsrc
78
79 [src/packages/uqm-music]
80 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/uqm-music
81 skip = ! wantsrc
82
83 # My home directory, which I keep in svn.
84 []
85 checkout = svn co svn+ssh://svn.kitenet.net/srv/svn/joey/trunk/home-$(hostname) joey
86 # run svnfix after each update
87 update = svn update && svnfix
88
89 [mail]
90 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/mail
91 skip = ! private
92
93 [doc]
94 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/doc
95 skip = ! private