comparison en/examples/ch01/new @ 826:a17d6390a480

More fixes to chapters 1 and 2.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 03 May 2009 20:27:09 -0700
parents
children
comparison
equal deleted inserted replaced
825:d7d09cda83d2 826:a17d6390a480
1 #!/bin/bash
2
3 cat > hello.c <<EOF
4 int main()
5 {
6 printf("hello world!\n");
7 }
8 EOF
9
10 cat > goodbye.c <<EOF
11 int main()
12 {
13 printf("goodbye world!\n");
14 }
15 EOF
16
17 #$ name: init
18
19 hg init myproject
20
21 #$ name: ls
22
23 ls -l
24
25 #$ name: ls2
26
27 ls -al myproject
28
29 #$ name: add
30
31 cd myproject
32 cp ../hello.c .
33 cp ../goodbye.c .
34 hg add
35 hg status
36
37 #$ name: commit
38
39 hg commit -m 'Initial commit'