From 4155bd40e024f752b88c04c2beb3274e36fc804b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 Jun 2020 09:31:06 +0200 Subject: Add config.install.share variable Its default value is data_root/share/ and it is now used as a common root for config.install.{data,doc,man} variables. --- doc/manual.cli | 7 ++++--- libbuild2/install/init.cxx | 10 ++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/doc/manual.cli b/doc/manual.cli index 104d6cd..bb4f57b 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -2244,12 +2244,13 @@ lib exec_root/lib/ config.install.lib libexec exec_root/libexec// config.install.libexec pkgconfig lib/pkgconfig/ config.install.pkgconfig -data data_root/share// config.install.data include data_root/include/ config.install.include +share data_root/share/ config.install.share +data share// config.install.data -doc data_root/share/doc// config.install.doc +doc share/doc// config.install.doc legal doc/ config.install.legal -man data_root/share/man/ config.install.man +man share/man/ config.install.man man man/man/ config.install.man \ diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 480eec4..fe35757 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -159,12 +159,13 @@ namespace build2 static const dir_path dir_libexec (dir_path ("exec_root") /= "libexec"); static const dir_path dir_pkgconfig (dir_path ("lib") /= "pkgconfig"); - static const dir_path dir_data (dir_path ("data_root") /= "share"); static const dir_path dir_include (dir_path ("data_root") /= "include"); + static const dir_path dir_share (dir_path ("data_root") /= "share"); + static const dir_path dir_data ("share"); - static const dir_path dir_doc (dir_path (dir_data) /= "doc"); + static const dir_path dir_doc (dir_path ("share") /= "doc"); static const dir_path dir_legal ("doc"); - static const dir_path dir_man (dir_path (dir_data) /= "man"); + static const dir_path dir_man (dir_path ("share") /= "man"); static const dir_path dir_man1 (dir_path ("man") /= "man1"); static const group_rule group_rule_ (true /* see_through_only */); @@ -263,8 +264,9 @@ namespace build2 set_dir (s, rs, "libexec", dir_path (dir_libexec) /= n, true); set_dir (s, rs, "pkgconfig", dir_pkgconfig, false, "644"); - set_dir (s, rs, "data", dir_path (dir_data) /= n, true); set_dir (s, rs, "include", dir_include); + set_dir (s, rs, "share", dir_share); + set_dir (s, rs, "data", dir_path (dir_data) /= n, true); set_dir (s, rs, "doc", dir_path (dir_doc) /= n, true); set_dir (s, rs, "legal", dir_legal); -- cgit v1.1