Mercurial > hgbook
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/en/examples/ch01/new Sun May 03 20:27:09 2009 -0700 @@ -0,0 +1,39 @@ +#!/bin/bash + +cat > hello.c <<EOF +int main() +{ + printf("hello world!\n"); +} +EOF + +cat > goodbye.c <<EOF +int main() +{ + printf("goodbye world!\n"); +} +EOF + +#$ name: init + +hg init myproject + +#$ name: ls + +ls -l + +#$ name: ls2 + +ls -al myproject + +#$ name: add + +cd myproject +cp ../hello.c . +cp ../goodbye.c . +hg add +hg status + +#$ name: commit + +hg commit -m 'Initial commit'