hgbook
annotate es/examples/mq.tarball @ 1079:58fefdf069c5
reformated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Fri Nov 20 22:53:55 2009 -0500 (2009-11-20) |
parents | |
children |
rev | line source |
---|---|
igor@333 | 1 #!/bin/bash |
igor@333 | 2 |
igor@333 | 3 cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 . |
igor@333 | 4 ln -s /bin/true download |
igor@333 | 5 export PATH=`pwd`:$PATH |
igor@333 | 6 |
igor@333 | 7 #$ name: download |
igor@333 | 8 |
igor@333 | 9 download netplug-1.2.5.tar.bz2 |
igor@333 | 10 tar jxf netplug-1.2.5.tar.bz2 |
igor@333 | 11 cd netplug-1.2.5 |
igor@333 | 12 hg init |
igor@333 | 13 hg commit -q --addremove --message netplug-1.2.5 |
igor@333 | 14 cd .. |
igor@333 | 15 hg clone netplug-1.2.5 netplug |
igor@333 | 16 |
igor@333 | 17 #$ name: |
igor@333 | 18 |
igor@333 | 19 cd netplug |
igor@333 | 20 echo '[extensions]' >> $HGRC |
igor@333 | 21 echo 'hgext.mq =' >> $HGRC |
igor@333 | 22 cd .. |
igor@333 | 23 |
igor@333 | 24 #$ name: qinit |
igor@333 | 25 |
igor@333 | 26 cd netplug |
igor@333 | 27 hg qinit |
igor@333 | 28 hg qnew -m 'fix build problem with gcc 4' build-fix.patch |
igor@333 | 29 perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c |
igor@333 | 30 hg qrefresh |
igor@333 | 31 hg tip -p |
igor@333 | 32 |
igor@333 | 33 #$ name: newsource |
igor@333 | 34 |
igor@333 | 35 hg qpop -a |
igor@333 | 36 cd .. |
igor@333 | 37 download netplug-1.2.8.tar.bz2 |
igor@333 | 38 hg clone netplug-1.2.5 netplug-1.2.8 |
igor@333 | 39 cd netplug-1.2.8 |
igor@333 | 40 hg locate -0 | xargs -0 rm |
igor@333 | 41 cd .. |
igor@333 | 42 tar jxf netplug-1.2.8.tar.bz2 |
igor@333 | 43 cd netplug-1.2.8 |
igor@333 | 44 hg commit --addremove --message netplug-1.2.8 |
igor@333 | 45 |
igor@333 | 46 #$ name: repush |
igor@333 | 47 |
igor@333 | 48 cd ../netplug |
igor@333 | 49 hg pull ../netplug-1.2.8 |
igor@333 | 50 hg qpush -a |
igor@333 | 51 |