From 6b171b43acef2d92f39418d3d1eebf3cb8721840 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Sun, 3 May 2020 08:58:28 -0600 Subject: Tweaks to manpage special modifiers wording [ci skip] Signed-off-by: Mats Wichmann --- doc/man/scons.xml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/doc/man/scons.xml b/doc/man/scons.xml index cd840b6..1e7964f 100644 --- a/doc/man/scons.xml +++ b/doc/man/scons.xml @@ -6168,6 +6168,18 @@ when a path references a file on other (POSIX) systems. + windows + +The path with directories separated by backslashes. +(\\). +Sometimes necessary on POSIX-style systems +when a path references a file on other (Windows) systems. +win32 is a (deprecated) synonym for +windows. + + + + srcpath The directory and file name to the source file linked to this file through @@ -6233,6 +6245,13 @@ ${SOURCE.rsrcpath} => /usr/repository/src/file.x ${SOURCE.rsrcdir} => /usr/repository/src + +Modifiers can be combined, like +${TARGET.base.windows}, +${TARGET.srcpath.base), +${TARGET.file.suffix}, etc. + + Note that curly braces braces may also be used to enclose arbitrary Python code to be evaluated. (In fact, this is how the above modifiers are substituted, @@ -6483,7 +6502,9 @@ and an optional fourth: Use str(node) to fetch the name of the file, and node.get_contents() - to fetch the contents of the file. + to fetch the contents of the file as bytes or + node.get_text_contents() + to fetch the contents as text. Note that the file is not guaranteed to exist before the scanner is called, -- cgit v0.12