hgbook
view en/examples/daily.files @ 171:8c1703a98266
Add a dependency on htlatex to HTML targets, even though we don't call it.
If the files it ships with aren't present, we can't build HTML.
If the files it ships with aren't present, we can't build HTML.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Mar 26 23:57:58 2007 -0700 (2007-03-26) |
parents | 6b0f4498569e |
children | d9a1faa45c30 |
line source
1 #!/bin/bash
3 #$ name: add
5 hg init add-example
6 cd add-example
7 echo a > a
8 hg status
9 hg add a
10 hg status
11 hg commit -m 'Added one file'
12 hg status
14 #$ name: add-dir
16 mkdir b
17 echo b > b/b
18 echo c > b/c
19 mkdir b/d
20 echo d > b/d/d
21 hg add b
22 hg commit -m 'Added all files in subdirectory'
24 #$ name:
26 cd ..
28 #$ name: hidden
30 hg init hidden-example
31 cd hidden-example
32 mkdir empty
33 touch empty/.hidden
34 hg add empty/.hidden
35 hg commit -m 'Manage an empty-looking directory'
36 ls empty
37 cd ..
38 hg clone hidden-example tmp
39 ls tmp
40 ls tmp/empty
42 #$ name: remove
44 hg init remove-example
45 cd remove-example
46 echo a > a
47 mkdir b
48 echo b > b/b
49 hg add a b
50 hg commit -m 'Small example for file removal'
51 hg remove a
52 hg status
53 hg remove b
55 #$ name:
57 cd ..
59 #$ name: missing
60 hg init missing-example
61 cd missing-example
62 echo a > a
63 hg add a
64 hg commit -m'File about to be missing'
65 rm a
66 hg status
68 #$ name: remove-after
70 hg remove --after a
71 hg status
73 #$ name: recover-missing
74 hg revert a
75 cat a
76 hg status
78 #$ name:
80 cd ..
82 #$ name: addremove
84 hg init addremove-example
85 cd addremove-example
86 echo a > a
87 echo b > b
88 hg addremove
90 #$ name: commit-addremove
92 echo c > c
93 hg commit -A -m 'Commit with addremove'