hgbook

annotate ja/examples/mq.dodiff @ 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
children
rev   line source
foozy@708 1 #!/bin/bash
foozy@708 2
foozy@708 3 #$ name: diff
foozy@708 4
foozy@708 5 echo 'this is my first line' > oldfile
foozy@708 6 echo 'my first line is here' > newfile
foozy@708 7
foozy@708 8 diff -u oldfile newfile > tiny.patch
foozy@708 9
foozy@708 10 cat tiny.patch
foozy@708 11
foozy@708 12 patch < tiny.patch
foozy@708 13
foozy@708 14 cat oldfile