1
1

Fixes trac:740: allow ompi_info to show the mandir.

This commit was SVN r16820.

The following Trac tickets were found above:
  Ticket 740 --> https://svn.open-mpi.org/trac/ompi/ticket/740
Этот коммит содержится в:
Jeff Squyres 2007-12-03 15:35:37 +00:00
родитель 57728986f8
Коммит 3bdb4396dc
3 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -101,7 +101,7 @@ int main(int argc, char *argv[])
opal_cmd_line_make_opt3(cmd_line, '\0', NULL, "internal", 0,
"Show internal MCA parameters (not meant to be modified by users)");
opal_cmd_line_make_opt3(cmd_line, '\0', NULL, "path", 1,
"Show paths that Open MPI was configured with. Accepts the following parameters: prefix, bindir, libdir, incdir, pkglibdir, sysconfdir");
"Show paths that Open MPI was configured with. Accepts the following parameters: prefix, bindir, libdir, incdir, mandir, pkglibdir, sysconfdir");
opal_cmd_line_make_opt3(cmd_line, '\0', NULL, "arch", 0,
"Show architecture Open MPI was compiled on");
opal_cmd_line_make_opt3(cmd_line, 'c', NULL, "config", 0,

Просмотреть файл

@ -76,6 +76,7 @@ namespace ompi_info {
extern std::string path_bindir;
extern std::string path_libdir;
extern std::string path_incdir;
extern std::string path_mandir;
extern std::string path_pkglibdir;
extern std::string path_sysconfdir;

Просмотреть файл

@ -57,6 +57,7 @@ string ompi_info::path_prefix = "prefix";
string ompi_info::path_bindir = "bindir";
string ompi_info::path_libdir = "libdir";
string ompi_info::path_incdir = "incdir";
string ompi_info::path_mandir = "mandir";
string ompi_info::path_pkglibdir = "pkglibdir";
string ompi_info::path_sysconfdir = "sysconfdir";
@ -260,6 +261,7 @@ void ompi_info::do_path(bool want_all, opal_cmd_line_t *cmd_line)
show_path(path_bindir, opal_install_dirs.bindir);
show_path(path_libdir, opal_install_dirs.libdir);
show_path(path_incdir, opal_install_dirs.includedir);
show_path(path_mandir, opal_install_dirs.mandir);
show_path(path_pkglibdir, opal_install_dirs.pkglibdir);
show_path(path_sysconfdir, opal_install_dirs.sysconfdir);
} else {
@ -275,6 +277,8 @@ void ompi_info::do_path(bool want_all, opal_cmd_line_t *cmd_line)
show_path(path_libdir, opal_install_dirs.libdir);
else if (path_incdir == scope)
show_path(path_incdir, opal_install_dirs.includedir);
else if (path_mandir == scope)
show_path(path_mandir, opal_install_dirs.mandir);
else if (path_pkglibdir == scope)
show_path(path_pkglibdir, opal_install_dirs.pkglibdir);
else if (path_sysconfdir == scope)