summaryrefslogtreecommitdiffstats
path: root/doc/user/sourcecode.xml
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-05-03 22:08:59 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-05-03 22:08:59 (GMT)
commit9e7cf970a730549348fd22a0921ea0ed2e894a69 (patch)
tree0bbe0e399fa2f8bb9328c012c5931e0172ea4547 /doc/user/sourcecode.xml
parente3827a98511acc0d208193920bc40d5e2724bf12 (diff)
downloadSCons-9e7cf970a730549348fd22a0921ea0ed2e894a69.zip
SCons-9e7cf970a730549348fd22a0921ea0ed2e894a69.tar.gz
SCons-9e7cf970a730549348fd22a0921ea0ed2e894a69.tar.bz2
- removed *.in files from the user guide
Diffstat (limited to 'doc/user/sourcecode.xml')
-rw-r--r--doc/user/sourcecode.xml71
1 files changed, 38 insertions, 33 deletions
diff --git a/doc/user/sourcecode.xml b/doc/user/sourcecode.xml
index 1818d8e..04c76d0 100644
--- a/doc/user/sourcecode.xml
+++ b/doc/user/sourcecode.xml
@@ -42,18 +42,20 @@
</para>
- <programlisting>
+ <scons_example name="ex_bitkeeper">
+ <file name="SConstruct" printme="1">
env = Environment()
env.SourceCode('.', env.BitKeeper())
env.Program('hello.c')
- </programlisting>
+ </file>
+ <file name="s.hello.c">
+ s.hello.c
+ </file>
+ </scons_example>
- <screen>
- % <userinput>scons -Q</userinput>
- bk get hello.c
- cc -o hello.o -c hello.c
- cc -o hello hello.o
- </screen>
+ <scons_output example="ex_bitkeeper">
+ <scons_output_command>scons -Q</scons_output_command>
+ </scons_output>
</section>
@@ -66,18 +68,17 @@
</para>
- <programlisting>
+ <scons_example name="ex_cvs">
+ <file name="SConstruct" printme="1">
env = Environment()
env.SourceCode('.', env.CVS('/usr/local/CVS'))
env.Program('hello.c')
- </programlisting>
+ </file>
+ </scons_example>
- <screen>
- % <userinput>scons -Q</userinput>
- cvs -d /usr/local/CVS co hello.c
- cc -o hello.o -c hello.c
- cc -o hello hello.o
- </screen>
+ <scons_output example="ex_cvs">
+ <scons_output_command>scons -Q</scons_output_command>
+ </scons_output>
</section>
@@ -90,18 +91,20 @@
</para>
- <programlisting>
+ <scons_example name="ex_rcs">
+ <file name="SConstruct" printme="1">
env = Environment()
env.SourceCode('.', env.RCS())
env.Program('hello.c')
- </programlisting>
+ </file>
+ <file name="hello.c,v">
+ hello.c,v
+ </file>
+ </scons_example>
- <screen>
- % <userinput>scons -Q</userinput>
- co hello.c
- cc -o hello.o -c hello.c
- cc -o hello hello.o
- </screen>
+ <scons_output example="ex_rcs">
+ <scons_output_command>scons -Q</scons_output_command>
+ </scons_output>
</section>
@@ -114,18 +117,20 @@
</para>
- <programlisting>
+ <scons_example name="ex_sccs">
+ <file name="SConstruct" printme="1">
env = Environment()
env.SourceCode('.', env.SCCS())
env.Program('hello.c')
- </programlisting>
-
- <screen>
- % <userinput>scons -Q</userinput>
- sccs get hello.c
- cc -o hello.o -c hello.c
- cc -o hello hello.o
- </screen>
+ </file>
+ <file name="s.hello.c">
+ s.hello.c
+ </file>
+ </scons_example>
+
+ <scons_output example="ex_sccs">
+ <scons_output_command>scons -Q</scons_output_command>
+ </scons_output>
</section>