aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-bindist.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-02-15 11:39:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-02-21 04:46:55 +0200
commit8166e873c0cad830001ff84a15450cd9a7958c19 (patch)
tree298acca1cb08d147522cd4cdabc546f76f7b223a /bpkg/pkg-bindist.cli
parent112428df3d899af280aca6f03c721bc7065bb787 (diff)
WIP
Diffstat (limited to 'bpkg/pkg-bindist.cli')
-rw-r--r--bpkg/pkg-bindist.cli45
1 files changed, 42 insertions, 3 deletions
diff --git a/bpkg/pkg-bindist.cli b/bpkg/pkg-bindist.cli
index ad743d9..7dd5832 100644
--- a/bpkg/pkg-bindist.cli
+++ b/bpkg/pkg-bindist.cli
@@ -48,11 +48,50 @@ namespace bpkg
"
}
- // @@ Have section for each package manager with options?
+ // Place distribution-specific options into separate classes in case one day
+ // we want to only pass their own options to each implementation.
+ //
+ class pkg_bindist_debian_options
+ {
+ "\h|PKG-BINDIST DEBIAN OPTIONS|"
+
+ string --debian-section
+ {
+ "<val>",
+ "Alternative \cb{Section} field value in the \cb{control} file for
+ the main binary package. The default is either \cb{libs} or \cb{devel},
+ depending on the package type."
+ }
+
+ string --debian-priority
+ {
+ "<val>",
+ "Alternative \cb{Priority} field value in the \cb{control} file. The
+ default is \cb{optional}."
+ }
+
+ string --debian-maintainer
+ {
+ "<val>",
+ "Alternative \cb{Maintainer} field value in the \cb{control} file. The
+ default is the \cb{package-email} value from package \cb{manifest}."
+ }
+
+ string --debian-architecture
+ {
+ "<vl>",
+ "Alternative \cb{Architecture} field value in the \cb{control} file for
+ the main binary package. The default is \cb{any}."
+ }
+ };
- class pkg_bindist_options: configuration_options
+ // NOTE: remember to add the corresponding `--class-doc ...=exclude-base`
+ // (both in bpkg/ and doc/) if adding a new base class.
+ //
+ class pkg_bindist_options: configuration_options,
+ pkg_bindist_debian_options
{
- "\h|PKG-BINDIST OPTIONS|"
+ "\h|PKG-BINDIST COMMON OPTIONS|"
string --distribution
{