hgbook

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/en/examples/mq.tarball	Fri Jul 07 19:56:53 2006 -0700
     1.3 @@ -0,0 +1,48 @@
     1.4 +cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
     1.5 +ln -s /bin/true download
     1.6 +
     1.7 +#$ name: download
     1.8 +
     1.9 +download netplug-1.2.5.tar.bz2
    1.10 +tar jxf netplug-1.2.5.tar.bz2
    1.11 +cd netplug-1.2.5
    1.12 +hg init
    1.13 +hg commit -q --addremove --message netplug-1.2.5
    1.14 +cd ..
    1.15 +hg clone netplug-1.2.5 netplug
    1.16 +
    1.17 +#$ name:
    1.18 +
    1.19 +cd netplug
    1.20 +echo '[extensions]' >> $HGRC
    1.21 +echo 'hgext.mq =' >> $HGRC
    1.22 +cd ..
    1.23 +
    1.24 +#$ name: qinit
    1.25 +
    1.26 +cd netplug
    1.27 +hg qinit
    1.28 +hg qnew -m 'fix build problem with gcc 4' build-fix.patch
    1.29 +perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c
    1.30 +hg qrefresh
    1.31 +hg tip -p
    1.32 +
    1.33 +#$ name: newsource
    1.34 +
    1.35 +hg qpop -a
    1.36 +cd ..
    1.37 +download netplug-1.2.8.tar.bz2
    1.38 +hg clone netplug-1.2.5 netplug-1.2.8
    1.39 +cd netplug-1.2.8
    1.40 +hg locate -0 | xargs -0 rm
    1.41 +cd ..
    1.42 +tar jxf netplug-1.2.8.tar.bz2
    1.43 +cd netplug-1.2.8
    1.44 +hg commit --addremove --message netplug-1.2.8
    1.45 +
    1.46 +#$ name: repush
    1.47 +
    1.48 +cd ../netplug
    1.49 +hg pull ../netplug-1.2.8
    1.50 +hg qpush -a
    1.51 +