hgbook
diff en/examples/ch01/new @ 808:178e66edacdb
Uncomment citation.
author | Giulio@puck |
---|---|
date | Sat Aug 15 11:38:07 2009 +0200 (2009-08-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/en/examples/ch01/new Sat Aug 15 11:38:07 2009 +0200 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'