-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for %{bin-available:...} (#4995)
Signed-off-by: Jeremie Dimino <[email protected]>
- Loading branch information
1 parent
0bdb213
commit c12f803
Showing
8 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Test for %{bin-available:...} | ||
|
||
$ cat >dune-project <<"EOF" | ||
> (lang dune 3.0) | ||
> (package (name foo)) | ||
> EOF | ||
$ cat >dune<<"EOF" | ||
> (rule | ||
> (alias default) | ||
> (action | ||
> (progn | ||
> (echo "dune: %{bin-available:dune}\n") | ||
> (echo "local program foo: %{bin-available:foo}\n") | ||
> (echo "non existant program: %{bin-available:*}\n")))) | ||
> | ||
> (executable (public_name foo)) | ||
> EOF | ||
$ touch foo.ml | ||
|
||
$ dune build | ||
dune: true | ||
local program foo: true | ||
non existant program: false |