From 7221a63204a0b2a89e1c72fcbf9f2a7de0a575a3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2015 14:05:22 +0200 Subject: Implement pkg-{configure, disfigure} commands --- bpkg/bpkg.cxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'bpkg/bpkg.cxx') diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 994f115..61bd330 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -14,11 +14,15 @@ // Commands. // #include + #include #include #include #include #include +#include +#include + #include #include @@ -200,6 +204,30 @@ try return 0; } + // pkg-configure + // + if (cmd.pkg_configure ()) + { + if (h) + help (ho, "pkg-configure", pkg_configure_options::print_usage); + else + pkg_configure (parse (co, args), args); + + return 0; + } + + // pkg-disfigure + // + if (cmd.pkg_disfigure ()) + { + if (h) + help (ho, "pkg-disfigure", pkg_disfigure_options::print_usage); + else + pkg_disfigure (parse (co, args), args); + + return 0; + } + // cfg-create // if (cmd.cfg_create ()) -- cgit v1.1