Mercurial > hgbook
comparison en/examples/mq.tarball @ 19:187702df428b
Piles of new content for MQ chapter - cookbook stuff.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 07 Jul 2006 19:56:53 -0700 |
parents | |
children | 5cee64874312 |
comparison
equal
deleted
inserted
replaced
18:e6f4088ebe52 | 19:187702df428b |
---|---|
1 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 . | |
2 ln -s /bin/true download | |
3 | |
4 #$ name: download | |
5 | |
6 download netplug-1.2.5.tar.bz2 | |
7 tar jxf netplug-1.2.5.tar.bz2 | |
8 cd netplug-1.2.5 | |
9 hg init | |
10 hg commit -q --addremove --message netplug-1.2.5 | |
11 cd .. | |
12 hg clone netplug-1.2.5 netplug | |
13 | |
14 #$ name: | |
15 | |
16 cd netplug | |
17 echo '[extensions]' >> $HGRC | |
18 echo 'hgext.mq =' >> $HGRC | |
19 cd .. | |
20 | |
21 #$ name: qinit | |
22 | |
23 cd netplug | |
24 hg qinit | |
25 hg qnew -m 'fix build problem with gcc 4' build-fix.patch | |
26 perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c | |
27 hg qrefresh | |
28 hg tip -p | |
29 | |
30 #$ name: newsource | |
31 | |
32 hg qpop -a | |
33 cd .. | |
34 download netplug-1.2.8.tar.bz2 | |
35 hg clone netplug-1.2.5 netplug-1.2.8 | |
36 cd netplug-1.2.8 | |
37 hg locate -0 | xargs -0 rm | |
38 cd .. | |
39 tar jxf netplug-1.2.8.tar.bz2 | |
40 cd netplug-1.2.8 | |
41 hg commit --addremove --message netplug-1.2.8 | |
42 | |
43 #$ name: repush | |
44 | |
45 cd ../netplug | |
46 hg pull ../netplug-1.2.8 | |
47 hg qpush -a | |
48 |