|
56 | 56 |
|
57 | 57 |
|
58 | 58 | def platform_default(): |
59 | | - """Return the platform string for our execution environment. |
| 59 | + r"""Return the platform string for our execution environment. |
60 | 60 |
|
61 | | - The returned value should map to one of the SCons/Platform/\*.py |
| 61 | + The returned value should map to one of the SCons/Platform/*.py |
62 | 62 | files. Since scons is architecture independent, though, we don't |
63 | 63 | care about the machine architecture. |
64 | 64 | """ |
@@ -131,29 +131,30 @@ def __str__(self): |
131 | 131 |
|
132 | 132 |
|
133 | 133 | class TempFileMunge: |
134 | | - """A callable class. You can set an Environment variable to this, |
| 134 | + """A callable class to enable temp files for long command lines. |
| 135 | +
|
| 136 | + You can set an Environment variable to this, |
135 | 137 | then call it with a string argument, then it will perform temporary |
136 | 138 | file substitution on it. This is used to circumvent the long command |
137 | | - line limitation. |
138 | | -
|
139 | | - Example: |
| 139 | + line limitation. Example:: |
140 | 140 |
|
141 | 141 | env["TEMPFILE"] = TempFileMunge |
142 | 142 | env["LINKCOM"] = "${TEMPFILE('$LINK $TARGET $SOURCES','$LINKCOMSTR')}" |
143 | 143 |
|
144 | 144 | By default, the name of the temporary file used begins with a |
145 | 145 | prefix of '@'. This may be configured for other tool chains by |
146 | | - setting '$TEMPFILEPREFIX'. Example: |
| 146 | + setting '$TEMPFILEPREFIX'. Example:: |
147 | 147 |
|
148 | 148 | env["TEMPFILEPREFIX"] = '-@' # diab compiler |
149 | 149 | env["TEMPFILEPREFIX"] = '-via' # arm tool chain |
150 | 150 | env["TEMPFILEPREFIX"] = '' # (the empty string) PC Lint |
151 | 151 |
|
152 | 152 | You can configure the extension of the temporary file through the |
153 | 153 | TEMPFILESUFFIX variable, which defaults to '.lnk' (see comments |
154 | | - in the code below). Example: |
| 154 | + in the code below). Example:: |
155 | 155 |
|
156 | 156 | env["TEMPFILESUFFIX"] = '.lnt' # PC Lint |
| 157 | +
|
157 | 158 | """ |
158 | 159 | def __init__(self, cmd, cmdstr = None): |
159 | 160 | self.cmd = cmd |
|
0 commit comments