summaryrefslogtreecommitdiffstats
path: root/doc/user
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2006-11-04 05:31:24 (GMT)
committerSteven Knight <knight@baldmt.com>2006-11-04 05:31:24 (GMT)
commitc36a10f28f1c38541757cbbe96d67cd87a2096e7 (patch)
tree6631963b4e4521d9a9a643edc1269409083e4651 /doc/user
parent6fcc7d78858a5ca068e3deea183d35295b7dd88e (diff)
downloadSCons-c36a10f28f1c38541757cbbe96d67cd87a2096e7.zip
SCons-c36a10f28f1c38541757cbbe96d67cd87a2096e7.tar.gz
SCons-c36a10f28f1c38541757cbbe96d67cd87a2096e7.tar.bz2
Merged revisions 1667-1674 via svnmerge from
http://scons.tigris.org/svn/scons/branches/core ........ r1672 | stevenknight | 2006-11-03 23:11:52 -0600 (Fri, 03 Nov 2006) | 1 line 0.96.D480 - Don't use UNIX logic to detect an executable qmtest.py on Windows. ........ r1673 | stevenknight | 2006-11-03 23:18:59 -0600 (Fri, 03 Nov 2006) | 1 line 0.96.D481 - Remove the print statement from the previous checkin. ........ r1674 | stevenknight | 2006-11-03 23:25:43 -0600 (Fri, 03 Nov 2006) | 1 line 0.96.D482 - Create a env.Clone() method and encourage its use in favor of env.Copy(). ........
Diffstat (limited to 'doc/user')
-rw-r--r--doc/user/environments.in8
-rw-r--r--doc/user/environments.sgml8
-rw-r--r--doc/user/hierarchy.in6
-rw-r--r--doc/user/hierarchy.sgml6
4 files changed, 14 insertions, 14 deletions
diff --git a/doc/user/environments.in b/doc/user/environments.in
index 9b5c348..ae453a0 100644
--- a/doc/user/environments.in
+++ b/doc/user/environments.in
@@ -620,7 +620,7 @@ environment undisturbed.
to share the same values for one or more variables.
Rather than always having to repeat all of the common
variables when you create each construction environment,
- you can use the &Copy; method
+ you can use the &Clone; method
to create a copy of a construction environment.
</para>
@@ -628,7 +628,7 @@ environment undisturbed.
<para>
Like the &Environment; call that creates a construction environment,
- the &Copy; method takes &consvar; assignments,
+ the &Clone; method takes &consvar; assignments,
which will override the values in the copied construction environment.
For example, suppose we want to use &gcc;
to create three versions of a program,
@@ -644,8 +644,8 @@ environment undisturbed.
<scons_example name="ex5">
<file name="SConstruct" printme="1">
env = Environment(CC = 'gcc')
- opt = env.Copy(CCFLAGS = '-O2')
- dbg = env.Copy(CCFLAGS = '-g')
+ opt = env.Clone(CCFLAGS = '-O2')
+ dbg = env.Clone(CCFLAGS = '-g')
env.Program('foo', 'foo.c')
diff --git a/doc/user/environments.sgml b/doc/user/environments.sgml
index 14be5af..90f6e3f 100644
--- a/doc/user/environments.sgml
+++ b/doc/user/environments.sgml
@@ -610,7 +610,7 @@ environment undisturbed.
to share the same values for one or more variables.
Rather than always having to repeat all of the common
variables when you create each construction environment,
- you can use the &Copy; method
+ you can use the &Clone; method
to create a copy of a construction environment.
</para>
@@ -618,7 +618,7 @@ environment undisturbed.
<para>
Like the &Environment; call that creates a construction environment,
- the &Copy; method takes &consvar; assignments,
+ the &Clone; method takes &consvar; assignments,
which will override the values in the copied construction environment.
For example, suppose we want to use &gcc;
to create three versions of a program,
@@ -633,8 +633,8 @@ environment undisturbed.
<programlisting>
env = Environment(CC = 'gcc')
- opt = env.Copy(CCFLAGS = '-O2')
- dbg = env.Copy(CCFLAGS = '-g')
+ opt = env.Clone(CCFLAGS = '-O2')
+ dbg = env.Clone(CCFLAGS = '-g')
env.Program('foo', 'foo.c')
diff --git a/doc/user/hierarchy.in b/doc/user/hierarchy.in
index 355aca3..2ec3fd3 100644
--- a/doc/user/hierarchy.in
+++ b/doc/user/hierarchy.in
@@ -638,7 +638,7 @@ make no difference to the build.
<sconstruct>
Import('env', 'debug')
- env = env.Copy(DEBUG = debug)
+ env = env.Clone(DEBUG = debug)
env.Program('prog', ['prog.c'])
</sconstruct>
@@ -652,7 +652,7 @@ make no difference to the build.
<sconstruct>
Import('env debug')
- env = env.Copy(DEBUG = debug)
+ env = env.Clone(DEBUG = debug)
env.Program('prog', ['prog.c'])
</sconstruct>
@@ -667,7 +667,7 @@ make no difference to the build.
<sconstruct>
Import('*')
- env = env.Copy(DEBUG = debug)
+ env = env.Clone(DEBUG = debug)
env.Program('prog', ['prog.c'])
</sconstruct>
diff --git a/doc/user/hierarchy.sgml b/doc/user/hierarchy.sgml
index 8281175..047545d 100644
--- a/doc/user/hierarchy.sgml
+++ b/doc/user/hierarchy.sgml
@@ -602,7 +602,7 @@ make no difference to the build.
<programlisting>
Import('env', 'debug')
- env = env.Copy(DEBUG = debug)
+ env = env.Clone(DEBUG = debug)
env.Program('prog', ['prog.c'])
</programlisting>
@@ -616,7 +616,7 @@ make no difference to the build.
<programlisting>
Import('env debug')
- env = env.Copy(DEBUG = debug)
+ env = env.Clone(DEBUG = debug)
env.Program('prog', ['prog.c'])
</programlisting>
@@ -631,7 +631,7 @@ make no difference to the build.
<programlisting>
Import('*')
- env = env.Copy(DEBUG = debug)
+ env = env.Clone(DEBUG = debug)
env.Program('prog', ['prog.c'])
</programlisting>