|
17 | 17 | *
|
18 | 18 | * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
19 | 19 | *
|
20 |
| - * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.26 2008/01/01 19:45:55 momjian Exp $ |
| 20 | + * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.27 2008/02/18 14:51:48 petere Exp $ |
21 | 21 | *
|
22 | 22 | *-------------------------------------------------------------------------
|
23 | 23 | */
|
@@ -97,6 +97,18 @@ show_docdir(bool all)
|
97 | 97 | printf("%s\n", path);
|
98 | 98 | }
|
99 | 99 |
|
| 100 | +static void |
| 101 | +show_htmldir(bool all) |
| 102 | +{ |
| 103 | + char path[MAXPGPATH]; |
| 104 | + |
| 105 | + if (all) |
| 106 | + printf("HTMLDIR = "); |
| 107 | + get_html_path(mypath, path); |
| 108 | + cleanup_path(path); |
| 109 | + printf("%s\n", path); |
| 110 | +} |
| 111 | + |
100 | 112 | static void
|
101 | 113 | show_includedir(bool all)
|
102 | 114 | {
|
@@ -369,6 +381,7 @@ typedef struct
|
369 | 381 | static const InfoItem info_items[] = {
|
370 | 382 | {"--bindir", show_bindir},
|
371 | 383 | {"--docdir", show_docdir},
|
| 384 | + {"--htmldir", show_htmldir}, |
372 | 385 | {"--includedir", show_includedir},
|
373 | 386 | {"--pkgincludedir", show_pkgincludedir},
|
374 | 387 | {"--includedir-server", show_includedir_server},
|
@@ -401,6 +414,7 @@ help(void)
|
401 | 414 | printf(_("Options:\n"));
|
402 | 415 | printf(_(" --bindir show location of user executables\n"));
|
403 | 416 | printf(_(" --docdir show location of documentation files\n"));
|
| 417 | + printf(_(" --htmldir show location of HTML documentation files\n")); |
404 | 418 | printf(_(" --includedir show location of C header files of the client\n"
|
405 | 419 | " interfaces\n"));
|
406 | 420 | printf(_(" --pkgincludedir show location of other C header files\n"));
|
|
0 commit comments