-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2609 from rgrinberg/install-particular-section
Add --sections option to install/uninstall
- Loading branch information
Showing
11 changed files
with
116 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(executable | ||
(public_name foo)) | ||
|
||
(install | ||
(section man) | ||
(package foo) | ||
(files mp)) |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/install-single-section/dune-project
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,4 @@ | ||
(lang dune 2.0) | ||
|
||
(package | ||
(name foo)) |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
test/blackbox-tests/test-cases/install-single-section/run.t
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,22 @@ | ||
Dune supports installing a subset of the sections in the .install file. This is | ||
particularly useful if one wants to install binaries: | ||
$ dune build @install | ||
$ dune install --dry-run --prefix ./ --sections bin,man | ||
Installing bin/foo | ||
Installing man/mp | ||
Creating directory bin | ||
Copying _build/install/default/bin/foo to bin/foo (executable: true) | ||
Creating directory man | ||
Copying _build/install/default/man/mp to man/mp (executable: false) | ||
|
||
Now let's install with the above command with one less section: | ||
|
||
$ dune install --dry-run --prefix ./ --sections bin | ||
Installing bin/foo | ||
Creating directory bin | ||
Copying _build/install/default/bin/foo to bin/foo (executable: true) | ||
|
||
The above command shouldn't include the man page anymore | ||
|
||
We can specify an empty list to install nothing | ||
$ dune install --dry-run --prefix ./ --sections "" |