summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-09-24 12:22:48 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-09-24 15:01:59 +0200
commit543a38424a98bb72b8cf34bacbd3ff552a306776 (patch)
treee6f4a9d2bf041dc007dff033a32b24ed2340504f /doc
parent6a3f198e1a8beebc8cc1cf560016125efc60970b (diff)
downloadqbs-543a38424a98bb72b8cf34bacbd3ff552a306776.tar.gz
fix calling of prepare script function
The scope that contains inputs, outputs and friends was bound to the function object, which is wrong when applying the function later on. Instead, we're passing those variables as function arguments now. Change-Id: I7ad7b6a742091fae889ed57b7c9cbceea4a2ead2 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/items/rule.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/reference/items/rule.qdoc b/doc/reference/items/rule.qdoc
index bc44b4ab3..1efd82f98 100644
--- a/doc/reference/items/rule.qdoc
+++ b/doc/reference/items/rule.qdoc
@@ -103,6 +103,10 @@
\li script
\li undefined
\li Script that prepares the commands to transform the inputs to outputs.
+ The code in this script is treated as a function with the signature
+ \c{function(project, product, inputs, outputs, input, output)}.
+ The argument \c{input} is \c{undefined} if there's more than one input artifact for this
+ rule. Similarly, \c{output} is only defined if there's exactly one output artifact.
\endtable
*/