Download PDF version

Transcript
A−A−P Recipe Executive
Filter stdin using a Python expression. See here for [redir]. When not used after "|" evaluate the
Python expression.
The Python expression is evaluated as specified in the argument. The "stdin" variable holds the value
of the input as a string, it must be present when :eval is used after "|".
See var2string() for information about using Aap variables in the Python expression.
The expression must result in the filtered string or something that can be converted to a string with
str(). This becomes stdout. The result may be empty. Examples:
:print $foo | :eval re.sub('<.*?>', '', stdin) > tt
:eval os.name | :assign OSNAME
Note that the expression must not contain a "|" preceded by white space, it will be recognized as a
pipe. Also there must be no ">" preceded by white space, it will be recognized as redirection.
:execute [{pass}] name [argument...]
Execute recipe "name" right away. This works like executing aap on "name".
The recipe is executed in a new scope. This is used as the toplevel scope, unless the "{pass}" option is
used.
The "fetch" attribute is supported like with :include.
Optional arguments may be given, like on the command line. This is useful for specifying targets and
variable values. "−f recipe" is ignored. Example:
TESTPROG = ./myprog
:execute test.aap test1 test2
The following command line options are also used for the executed recipe. Thus when Aap was
started with the −−nobuild argument, this will also be applied to recipes executed with :execute. All
other command line arguments are not passed on.
−C −−contents
−k −−continue
−F −−force
−n −−nobuild
−a −−nocache
−N −−nofetch−recipe
−s −−silent
−S −−stop
−t −−touch
−v −−verbose
This command is useful when a recipe does not contain dependencies that interfere with sources and
targets in the current recipe. For example, to build a command the current recipe depends on. For
example, when the program "mytool" is required and it doesn't exist yet, execute a recipe to build and
install it:
Alphabetical list of Commands
165