view 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 source

#!/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'