Eliminate / replace remaining cPickle references in test scripts.
[scons.git] / doc / user / sourcecode.xml
1 <!--
2
3   __COPYRIGHT__
4
5   Permission is hereby granted, free of charge, to any person obtaining
6   a copy of this software and associated documentation files (the
7   "Software"), to deal in the Software without restriction, including
8   without limitation the rights to use, copy, modify, merge, publish,
9   distribute, sublicense, and/or sell copies of the Software, and to
10   permit persons to whom the Software is furnished to do so, subject to
11   the following conditions:
12
13   The above copyright notice and this permission notice shall be included
14   in all copies or substantial portions of the Software.
15
16   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
17   KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
18   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20   LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22   WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 -->
25
26 <!--
27
28 -->
29
30  <para>
31
32    XXX
33
34  </para>
35
36  <section>
37  <title>Fetching Source Code From BitKeeper</title>
38
39    <para>
40
41    XXX
42
43    </para>
44
45    <programlisting>
46       env = Environment()
47       env.SourceCode('.', env.BitKeeper())
48       env.Program('hello.c')
49    </programlisting>
50
51    <screen>
52      % <userinput>scons -Q</userinput>
53      bk get hello.c
54      cc -o hello.o -c hello.c
55      cc -o hello hello.o
56    </screen>
57
58  </section>
59
60  <section>
61  <title>Fetching Source Code From CVS</title>
62
63    <para>
64
65    XXX
66
67    </para>
68
69    <programlisting>
70       env = Environment()
71       env.SourceCode('.', env.CVS('/usr/local/CVS'))
72       env.Program('hello.c')
73    </programlisting>
74
75    <screen>
76      % <userinput>scons -Q</userinput>
77      cvs -d /usr/local/CVS co hello.c
78      cc -o hello.o -c hello.c
79      cc -o hello hello.o
80    </screen>
81
82  </section>
83
84  <section>
85  <title>Fetching Source Code From RCS</title>
86
87    <para>
88
89    XXX
90
91    </para>
92
93    <programlisting>
94       env = Environment()
95       env.SourceCode('.', env.RCS())
96       env.Program('hello.c')
97    </programlisting>
98
99    <screen>
100      % <userinput>scons -Q</userinput>
101      co hello.c
102      cc -o hello.o -c hello.c
103      cc -o hello hello.o
104    </screen>
105
106  </section>
107
108  <section>
109  <title>Fetching Source Code From SCCS</title>
110
111    <para>
112
113    XXX
114
115    </para>
116
117    <programlisting>
118       env = Environment()
119       env.SourceCode('.', env.SCCS())
120       env.Program('hello.c')
121    </programlisting>
122
123    <screen>
124      % <userinput>scons -Q</userinput>
125      sccs get hello.c
126      cc -o hello.o -c hello.c
127      cc -o hello hello.o
128    </screen>
129
130  </section>
131
132  <!--
133
134  <section>
135  <title>Fetching Source Code From Subversion</title>
136
137    <para>
138
139    XXX
140
141    </para>
142
143    <scons_example name="ex_subversion">
144       <file name="SConstruct" printme="1">
145       env = Environment()
146       env.SourceCode('.', env.Subversion('XXX'))
147       env.Program('hello.c')
148       </file>
149    </scons_example>
150
151    <scons_output example="ex_subversion">
152      <scons_output_command>scons -Q</scons_output_command>
153    </scons_output>
154
155  </section>
156
157  -->