Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / dh-ocaml
Commits:
-
2075af91
by Stephane Glondu at 2023-08-16T17:12:39+02:00
-
46978edc
by Stephane Glondu at 2023-08-16T17:14:56+02:00
2 changed files:
Changes:
| ... | ... | @@ -43,14 +43,25 @@ sub get_dune_package_name_list { |
| 43 | 43 | return join(",", $this->get_dune_package_names());
|
| 44 | 44 | }
|
| 45 | 45 | |
| 46 | +sub get_dune_parallel {
|
|
| 47 | + my $this = shift;
|
|
| 48 | + my $parallel = $this->get_parallel();
|
|
| 49 | + my @result;
|
|
| 50 | + if ($parallel > 0) {
|
|
| 51 | + push(@result, "-j");
|
|
| 52 | + push(@result, $parallel);
|
|
| 53 | + }
|
|
| 54 | + return @result;
|
|
| 55 | +}
|
|
| 56 | + |
|
| 46 | 57 | sub build {
|
| 47 | 58 | my $this=shift;
|
| 48 | - $this->doit_in_sourcedir("dune", "build", "-p", $this->get_dune_package_name_list());
|
|
| 59 | + $this->doit_in_sourcedir("dune", "build", $this->get_dune_parallel(), "-p", $this->get_dune_package_name_list());
|
|
| 49 | 60 | }
|
| 50 | 61 | |
| 51 | 62 | sub test {
|
| 52 | 63 | my $this=shift;
|
| 53 | - $this->doit_in_sourcedir("dune", "runtest", "-p", $this->get_dune_package_name_list());
|
|
| 64 | + $this->doit_in_sourcedir("dune", "runtest", $this->get_dune_parallel(), "-p", $this->get_dune_package_name_list());
|
|
| 54 | 65 | }
|
| 55 | 66 | |
| 56 | 67 | sub install {
|
| 1 | 1 | dh-ocaml (1.2.4) UNRELEASED; urgency=medium
|
| 2 | 2 | |
| 3 | + [ Debian Janitor ]
|
|
| 3 | 4 | * Apply multi-arch hints.
|
| 4 | 5 | + dh-ocaml: Add Multi-Arch: foreign.
|
| 5 | 6 | |
| 7 | + [ Stéphane Glondu ]
|
|
| 8 | + * Call dune {build,runtest} with -j if applicable
|
|
| 9 | + |
|
| 6 | 10 | -- Debian Janitor <janitor@jelmer.uk> Sat, 10 Jul 2021 10:05:33 -0000
|
| 7 | 11 | |
| 8 | 12 | dh-ocaml (1.2.3) unstable; urgency=medium
|