hgbook

annotate 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
rev   line source
bos@19 1 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
bos@19 2 ln -s /bin/true download
bos@19 3
bos@19 4 #$ name: download
bos@19 5
bos@19 6 download netplug-1.2.5.tar.bz2
bos@19 7 tar jxf netplug-1.2.5.tar.bz2
bos@19 8 cd netplug-1.2.5
bos@19 9 hg init
bos@19 10 hg commit -q --addremove --message netplug-1.2.5
bos@19 11 cd ..
bos@19 12 hg clone netplug-1.2.5 netplug
bos@19 13
bos@19 14 #$ name:
bos@19 15
bos@19 16 cd netplug
bos@19 17 echo '[extensions]' >> $HGRC
bos@19 18 echo 'hgext.mq =' >> $HGRC
bos@19 19 cd ..
bos@19 20
bos@19 21 #$ name: qinit
bos@19 22
bos@19 23 cd netplug
bos@19 24 hg qinit
bos@19 25 hg qnew -m 'fix build problem with gcc 4' build-fix.patch
bos@19 26 perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c
bos@19 27 hg qrefresh
bos@19 28 hg tip -p
bos@19 29
bos@19 30 #$ name: newsource
bos@19 31
bos@19 32 hg qpop -a
bos@19 33 cd ..
bos@19 34 download netplug-1.2.8.tar.bz2
bos@19 35 hg clone netplug-1.2.5 netplug-1.2.8
bos@19 36 cd netplug-1.2.8
bos@19 37 hg locate -0 | xargs -0 rm
bos@19 38 cd ..
bos@19 39 tar jxf netplug-1.2.8.tar.bz2
bos@19 40 cd netplug-1.2.8
bos@19 41 hg commit --addremove --message netplug-1.2.8
bos@19 42
bos@19 43 #$ name: repush
bos@19 44
bos@19 45 cd ../netplug
bos@19 46 hg pull ../netplug-1.2.8
bos@19 47 hg qpush -a
bos@19 48