summaryrefslogtreecommitdiffstats
path: root/doc/user/scanners.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/scanners.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/scanners.xml')
-rw-r--r--doc/user/scanners.xml26
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/user/scanners.xml b/doc/user/scanners.xml
index f150d33..50524e0 100644
--- a/doc/user/scanners.xml
+++ b/doc/user/scanners.xml
@@ -285,7 +285,8 @@ over the file scanning rather than being called for each input line:
</para>
- <programlisting>
+ <scons_example name="scan">
+ <file name="SConstruct" printme="1">
import re
include_re = re.compile(r'^include\s+(\S+)$', re.M)
@@ -298,11 +299,24 @@ over the file scanning rather than being called for each input line:
kscan = Scanner(function = kfile_scan,
skeys = ['.k'])
- env = Environment(ENV = {'PATH' : '/usr/local/bin'})
+ env = Environment(ENV = {'PATH' : '__ROOT__/usr/local/bin'})
env.Append(SCANNERS = kscan)
env.Command('foo', 'foo.k', 'kprocess &lt; $SOURCES &gt; $TARGET')
- </programlisting>
+ </file>
+ <file name="foo.k">
+ include other_file
+ </file>
+ <file name="other_file">
+ other_file
+ </file>
+ <directory name="__ROOT__/usr"></directory>
+ <directory name="__ROOT__/usr/local"></directory>
+ <directory name="__ROOT__/usr/local/bin"></directory>
+ <file name="__ROOT_/usr/local/bin/kprocess" chmod="755">
+ cat
+ </file>
+ </scons_example>
<!--
@@ -356,11 +370,13 @@ over the file scanning rather than being called for each input line:
</para>
- <programlisting>
+ <scons_example name="findpathdirs">
+ <file name="SConstruct" printme="1">
kscan = Scanner(function = kfile_scan,
skeys = ['.k'],
path=FindPathDirs('KPATH'))
- </programlisting>
+ </file>
+ </scons_example>
<para>