- An option name and aliases can now be specified as a tuple.
+ From Hartmut Goebel:
+
+ - Textfile builder.
+
From Jim Hunziker:
- Avoid adding -gphobos to a command line multiple times
- Restructure a test that occasionally hung so that the test would
detect when it was stuck and fail instead.
- - Add the Textfile and Substfile builders.
+ - Substfile builder.
From Gary Oberbrunner:
(the null string and <filename>.txt</filename> by default, respectively)
are automatically added to the target if they are not already present.
Examples:
+
<example>
# builds/writes foo.txt
env.Textfile(target = 'foo.txt', source = ['Goethe', 42, 'Schiller'])
Results are:
foo.txt
- ....8<----
+ ....8<----
Goethe
42
Schiller
- ....8<---- (no linefeed at the end)
+ ....8<---- (no linefeed at the end)
bar.txt:
- ....8<----
+ ....8<----
lalala|*tanteratei
- ....8<---- (no linefeed at the end)
+ ....8<---- (no linefeed at the end)
-blog.txt
- ....8<----
+blob.txt
+ ....8<----
lalala
Goethe
42
Schiller
tanteratei
- ....8<---- (no linefeed at the end)
+ ....8<---- (no linefeed at the end)
</example>
</summary>
</builder>
which may be a Python callable function or a string.
If a value is a function,
it is first called (with no arguments) to produce a string.
-The string is &subst;-expanded and the result is substituted.
+The string is <emphasis>subst</emphasis>-expanded
+and the result replaces the key.
<example>
env = Environment(tools = ['default', 'textfile'])
env.Substfile('foo.in', SUBST_DICT = bad_foo)
# PREDICTABLE - keys are applied longest first
-good_foo = ['$foobar': '$foobar', '$foo': '$foo']
+good_foo = [('$foobar', '$foobar'), ('$foo', '$foo')]
env.Substfile('foo.in', SUBST_DICT = good_foo)
# UNPREDICTABLE - one substitution could be futher expanded
<summary>
The suffix used for &b-Substfile; file names,
the null string by default.
-</example>
</summary>
</cvar>