hgbook

annotate en/examples/mq.tarball @ 680:7226e5e750a6

Clean up chapter 8, and add content
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Apr 21 23:49:27 2009 -0700 (2009-04-21)
parents 6f37e6a7d8cd
children
rev   line source
bos@47 1 #!/bin/bash
bos@47 2
bos@19 3 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
bos@19 4 ln -s /bin/true download
bos@176 5 export PATH=`pwd`:$PATH
bos@19 6
bos@19 7 #$ name: download
bos@19 8
bos@19 9 download netplug-1.2.5.tar.bz2
bos@19 10 tar jxf netplug-1.2.5.tar.bz2
bos@19 11 cd netplug-1.2.5
bos@19 12 hg init
bos@19 13 hg commit -q --addremove --message netplug-1.2.5
bos@19 14 cd ..
bos@19 15 hg clone netplug-1.2.5 netplug
bos@19 16
bos@19 17 #$ name:
bos@19 18
bos@19 19 cd netplug
bos@19 20 echo '[extensions]' >> $HGRC
bos@19 21 echo 'hgext.mq =' >> $HGRC
bos@19 22 cd ..
bos@19 23
bos@19 24 #$ name: qinit
bos@19 25
bos@19 26 cd netplug
bos@19 27 hg qinit
bos@19 28 hg qnew -m 'fix build problem with gcc 4' build-fix.patch
bos@19 29 perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c
bos@19 30 hg qrefresh
bos@19 31 hg tip -p
bos@19 32
bos@19 33 #$ name: newsource
bos@19 34
bos@19 35 hg qpop -a
bos@19 36 cd ..
bos@19 37 download netplug-1.2.8.tar.bz2
bos@19 38 hg clone netplug-1.2.5 netplug-1.2.8
bos@19 39 cd netplug-1.2.8
bos@19 40 hg locate -0 | xargs -0 rm
bos@19 41 cd ..
bos@19 42 tar jxf netplug-1.2.8.tar.bz2
bos@19 43 cd netplug-1.2.8
bos@19 44 hg commit --addremove --message netplug-1.2.8
bos@19 45
bos@19 46 #$ name: repush
bos@19 47
bos@19 48 cd ../netplug
bos@19 49 hg pull ../netplug-1.2.8
bos@19 50 hg qpush -a
bos@19 51