Edgewall Software

Changes between Initial Version and Version 1 of Recipe Commands


Ignore:
Timestamp:
Sep 12, 2005, 4:26:02 PM (19 years ago)
Author:
cmlenz
Comment:

Beginning a recipe command reference

Legend:

Unmodified
Added
Removed
Modified
  • Recipe Commands

    v1 v1  
     1= Build Recipe Commands Reference =
     2[[PageOutline(2)]]
     3
     4As described on the [wiki:BuildRecipes page about build recipes], a recipe is stored as an XML document. This page describes what commands are available in recipes.
     5
     6----
     7
     8== Shell Tools ==
     9
     10A bundle of generic tools that are not specific to any programming language or tool-chain.
     11
     12 ''Namespace'':: `bitten:bitten.build.shtools`
     13 ''Common prefix'':: `sh`
     14
     15=== `<sh:exec>` ===
     16
     17Executes a program or script.
     18
     19==== Parameters ====
     20
     21|| Name || Description ||
     22|| `executable` || The name of the executable program. ||
     23|| `file` || Path to the script to execute, relative to the project directory ||
     24|| `output` || Path to the output file ||
     25|| `args` || Any arguments to pass to the executable or script ||
     26
     27Either `execute` or `file` must be specified.
     28
     29==== Examples ====
     30
     31 '''TODO'''
     32
     33=== `<sh:pipe>` ===
     34
     35Pipes the content of a file through a program or script.
     36
     37==== Parameters ====
     38
     39|| Name || Default ||
     40|| `executable` || The name of the executable program. ||
     41|| `file` || Path to the script to execute, relative to the project directory ||
     42|| `input` || Path to the input file ||
     43|| `output` || Path to the output file ||
     44|| `args` || Any arguments to pass to the executable or script ||
     45
     46Either `execute` or `file` must be specified.
     47
     48==== Examples ====
     49
     50 '''TODO'''
     51
     52
     53----
     54
     55== C/Unix Tools ==
     56
     57These commands provide support for tools commonly used for development of C/C++ applications on Unix platforms, such as '''make'''.
     58
     59 ''Namespace'':: `bitten:bitten.build.ctools`
     60 ''Common prefix'':: `c`
     61
     62=== `<c:make>` ===
     63
     64Executes a Makefile.
     65
     66==== Parameters ====
     67
     68|| Name || Description ||
     69|| `target` || Name of the target to execute (defaults to “all”) ||
     70|| `file` || Path to the Makefile that should be used. ||
     71|| `keep-going` || Whether `make` should try to continue even after encountering errors. ||
     72
     73==== Examples ====
     74
     75 '''TODO'''
     76
     77
     78----
     79
     80== Python Tools ==
     81
     82A bundle of recipe commands that support tools commonly used by [http://www.python.org/ Python] projects.
     83
     84 ''Namespace'':: `bitten:bitten.build.pythontools`
     85 ''Common prefix'':: `python`
     86
     87=== `<python:exec>` ===
     88
     89Executes a Python script.
     90
     91==== Parameters ====
     92
     93|| Name || Description ||
     94|| `file` || Path of the script to execute, relative to the project source directory. ||
     95|| `module` || Name of the Python module to execute. ||
     96|| `args` || Any arguments that should be passed to the script. ||
     97|| `output` || Path to a file where any output by the script should be recorded. ||
     98
     99Either `file` or `module` must be specified.
     100
     101==== Examples ====
     102
     103{{{
     104 <python:exec module="pylint.lint" output="pylint-report.txt" args="myproj" />
     105}}}
     106
     107Executes [http://www.logilab.org/projects/pylint Pylint] on the module/package “myproj” and stores the output into a file named `pylint-report.txt`.
     108
     109=== `<python:distutils>` ===
     110
     111Executes a [http://docs.python.org/lib/module-distutils.html distutils] script.
     112
     113==== Parameters ====
     114
     115|| Name || Description ||
     116|| `command` || The name of the `distutils` command that should be run ||
     117
     118==== Examples ====
     119
     120{{{
     121 <python:distutils command="sdist" />
     122}}}
     123
     124Instructs `distutils` to produce a source distribution.
     125
     126=== `<python:unittest>` ===
     127
     128Extracts information from [http://docs.python.org/lib/module-unittest.html unittest] results recorded in an XML file.
     129
     130==== Parameters ====
     131
     132 '''TODO'''
     133
     134==== Examples ====
     135
     136 '''TODO'''
     137
     138=== `<python:trace>` ===
     139
     140Extracts coverage information recorded by the built-in Python module `trace.py`.
     141
     142==== Parameters ====
     143
     144 '''TODO'''
     145
     146==== Examples ====
     147
     148 '''TODO'''
     149
     150=== `<python:pylint>` ===
     151
     152Extracts information from [http://www.logilab.org/projects/pylint Pylint] reports.
     153
     154==== Parameters ====
     155
     156 '''TODO'''
     157
     158==== Examples ====
     159
     160 '''TODO'''