hgbook

view en/examples/ch01/new @ 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
line source
1 #!/bin/bash
3 cat > hello.c <<EOF
4 int main()
5 {
6 printf("hello world!\n");
7 }
8 EOF
10 cat > goodbye.c <<EOF
11 int main()
12 {
13 printf("goodbye world!\n");
14 }
15 EOF
17 #$ name: init
19 hg init myproject
21 #$ name: ls
23 ls -l
25 #$ name: ls2
27 ls -al myproject
29 #$ name: add
31 cd myproject
32 cp ../hello.c .
33 cp ../goodbye.c .
34 hg add
35 hg status
37 #$ name: commit
39 hg commit -m 'Initial commit'