hgbook

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/en/examples/ch01/new	Sun Dec 13 16:35:56 2009 +0900
     1.3 @@ -0,0 +1,39 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +cat > hello.c <<EOF
     1.7 +int main()
     1.8 +{
     1.9 +    printf("hello world!\n");
    1.10 +}
    1.11 +EOF
    1.12 +
    1.13 +cat > goodbye.c <<EOF
    1.14 +int main()
    1.15 +{
    1.16 +    printf("goodbye world!\n");
    1.17 +}
    1.18 +EOF
    1.19 +
    1.20 +#$ name: init
    1.21 +
    1.22 +hg init myproject
    1.23 +
    1.24 +#$ name: ls
    1.25 +
    1.26 +ls -l
    1.27 +
    1.28 +#$ name: ls2
    1.29 +
    1.30 +ls -al myproject
    1.31 +
    1.32 +#$ name: add
    1.33 +
    1.34 +cd myproject
    1.35 +cp ../hello.c .
    1.36 +cp ../goodbye.c .
    1.37 +hg add
    1.38 +hg status
    1.39 +
    1.40 +#$ name: commit
    1.41 +
    1.42 +hg commit -m 'Initial commit'