hgbook

view en/examples/mq.tarball @ 1114:527b86d55d4a

inotify: update installation information

inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sun Dec 13 16:35:56 2009 +0900 (2009-12-13)
parents 6f37e6a7d8cd
children
line source
1 #!/bin/bash
3 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
4 ln -s /bin/true download
5 export PATH=`pwd`:$PATH
7 #$ name: download
9 download netplug-1.2.5.tar.bz2
10 tar jxf netplug-1.2.5.tar.bz2
11 cd netplug-1.2.5
12 hg init
13 hg commit -q --addremove --message netplug-1.2.5
14 cd ..
15 hg clone netplug-1.2.5 netplug
17 #$ name:
19 cd netplug
20 echo '[extensions]' >> $HGRC
21 echo 'hgext.mq =' >> $HGRC
22 cd ..
24 #$ name: qinit
26 cd netplug
27 hg qinit
28 hg qnew -m 'fix build problem with gcc 4' build-fix.patch
29 perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c
30 hg qrefresh
31 hg tip -p
33 #$ name: newsource
35 hg qpop -a
36 cd ..
37 download netplug-1.2.8.tar.bz2
38 hg clone netplug-1.2.5 netplug-1.2.8
39 cd netplug-1.2.8
40 hg locate -0 | xargs -0 rm
41 cd ..
42 tar jxf netplug-1.2.8.tar.bz2
43 cd netplug-1.2.8
44 hg commit --addremove --message netplug-1.2.8
46 #$ name: repush
48 cd ../netplug
49 hg pull ../netplug-1.2.8
50 hg qpush -a