forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pierre-Yves Strub <[email protected]>
- Loading branch information
Showing
4 changed files
with
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(executable | ||
(name main) | ||
(public_name main) | ||
(promote (until-clean)) | ||
(libraries dune-build-info dune-site)) | ||
|
||
(generate_sites_module | ||
(module SitesModule) | ||
(sites github4389)) |
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,6 @@ | ||
(lang dune 2.9) | ||
(using dune_site 0.1) | ||
|
||
(package | ||
(name github4389) | ||
(sites (share github4389))) |
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,10 @@ | ||
let version = | ||
match Build_info.V1.version () with | ||
| None -> "n/a" | ||
| Some v -> Build_info.V1.Version.to_string v | ||
|
||
let () = | ||
Format.eprintf "%s@." version; | ||
List.iter | ||
(fun x -> Format.eprintf "%s@." x) | ||
SitesModule.Sites.github4389 |
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,14 @@ | ||
$ dune build @install | ||
$ dune install --prefix _install | ||
Installing _install/lib/github4389/META | ||
Installing _install/lib/github4389/dune-package | ||
File "_build/install/default/lib/github4389/dune-package", line 1, characters 0-0: | ||
Warning: Failed to parse file, not adding version and locations information. | ||
Installing _install/bin/main | ||
$ grep sites _install/lib/github4389/dune-package | ||
(sites (github4389 share)) | ||
$ grep -o '[^ ]*/_install/share/github4389' _install/lib/github4389/dune-package | ||
[1] | ||
$ _install/bin/main | ||
n/a | ||
$TESTCASE_ROOT/_install/share/github4389/github4389 |