Merge pull request #942 from rgrinberg/update-migration

Update table of renamed vars in docs
This commit is contained in:
Rudi Grinberg 2018-07-03 00:14:25 +07:00 committed by GitHub
commit 51c9b207b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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:..}``
======================== ============