Update table of renamed vars in docs

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-07-02 18:37:13 +07:00
parent 9254f30cc0
commit 8ed1b32ed2
1 changed files with 14 additions and 9 deletions

View File

@ -137,7 +137,7 @@ Variable Syntax
``${foo} and $(foo)`` are no longer valid variable syntax in dune files. ``${foo} and $(foo)`` are no longer valid variable syntax in dune files.
Variables are defined as ``%{foo}``. This change is done to simplify Variables are defined as ``%{foo}``. This change is done to simplify
interoperability with bash commands which also use teh ``${foo}`` syntax. interoperability with bash commands which also use the ``${foo}`` syntax.
``(files_recursively_in ..)`` is removed ``(files_recursively_in ..)`` is removed
---------------------------------------- ----------------------------------------
@ -161,12 +161,17 @@ supported in dune files.
Renamed Variables Renamed Variables
----------------- -----------------
The following table consists of variables than have been renamed in dune: All existing variables have been lowercased for consistency. Other variables
have always been renamed. Refer to this table for details:
======== =========== ======================== ============
Jbuild Dune Jbuild Dune
======== =========== ======================== ============
``${@}`` ``%{targets}`` ``${@}`` ``%{targets}``
``${^}`` ``%{deps}`` ``${^}`` ``%{deps}``
``${<}`` ``%{deps[0]}`` ``${<}`` ``%{deps[0]}``
======== =========== ``${path:file}`` ``%{dep:file}``
``${path-no-dep:file}`` ``%{path:file}``
``${SCOPE_ROOT}`` ``%{project_root}``
``${findlib:..}`` ``%{lib:..}``
======================== ============