hgbook

view en/examples/mq.tarball @ 19:187702df428b

Piles of new content for MQ chapter - cookbook stuff.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri Jul 07 19:56:53 2006 -0700 (2006-07-07)
parents
children 5cee64874312
line source
1 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
2 ln -s /bin/true download
4 #$ name: download
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
14 #$ name:
16 cd netplug
17 echo '[extensions]' >> $HGRC
18 echo 'hgext.mq =' >> $HGRC
19 cd ..
21 #$ name: qinit
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
30 #$ name: newsource
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
43 #$ name: repush
45 cd ../netplug
46 hg pull ../netplug-1.2.8
47 hg qpush -a