hgbook

view en/examples/mq.tarball @ 47:6f37e6a7d8cd

Get Emacs to figure out what syntax highlighting to use for examples.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun Jul 23 23:38:41 2006 -0700 (2006-07-23)
parents 5cee64874312
children edd2acc3dbab
line source
1 #!/bin/bash
3 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
4 ln -s /bin/true download
6 #$ name: download
8 download netplug-1.2.5.tar.bz2
9 tar jxf netplug-1.2.5.tar.bz2
10 cd netplug-1.2.5
11 hg init
12 hg commit -q --addremove --message netplug-1.2.5
13 cd ..
14 hg clone netplug-1.2.5 netplug
16 #$ name:
18 cd netplug
19 echo '[extensions]' >> $HGRC
20 echo 'hgext.mq =' >> $HGRC
21 cd ..
23 #$ name: qinit
25 cd netplug
26 hg qinit
27 hg qnew -m 'fix build problem with gcc 4' build-fix.patch
28 perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c
29 hg qrefresh
30 hg tip -p
32 #$ name: newsource
34 hg qpop -a
35 cd ..
36 download netplug-1.2.8.tar.bz2
37 hg clone netplug-1.2.5 netplug-1.2.8
38 cd netplug-1.2.8
39 hg locate -0 | xargs -0 rm
40 cd ..
41 tar jxf netplug-1.2.8.tar.bz2
42 cd netplug-1.2.8
43 hg commit --addremove --message netplug-1.2.8
45 #$ name: repush
47 cd ../netplug
48 hg pull ../netplug-1.2.8
49 hg qpush -a