Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
84ce707b
Commit
84ce707b
authored
Feb 18, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --htmldir option to pg_config, equivalent to the new configure option.
parent
a9bc069c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
8 deletions
+41
-8
doc/src/sgml/ref/pg_config-ref.sgml
doc/src/sgml/ref/pg_config-ref.sgml
+12
-4
src/bin/pg_config/pg_config.c
src/bin/pg_config/pg_config.c
+15
-1
src/include/port.h
src/include/port.h
+2
-1
src/port/Makefile
src/port/Makefile
+2
-1
src/port/path.c
src/port/path.c
+10
-1
No files found.
doc/src/sgml/ref/pg_config-ref.sgml
View file @
84ce707b
<
!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.2
7 2007/02/20 15:01:17 momjian
Exp $ -->
<
!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.2
8 2008/02/18 14:51:48 petere
Exp $ -->
<
refentry
id
=
"app-pgconfig"
>
<
refentry
id
=
"app-pgconfig"
>
<
refmeta
>
<
refmeta
>
...
@@ -57,9 +57,16 @@
...
@@ -57,9 +57,16 @@
<
term
><
option
>--
docdir
</
option
></>
<
term
><
option
>--
docdir
</
option
></>
<
listitem
>
<
listitem
>
<
para
>
<
para
>
Print
the
location
of
documentation
files
.
(
This
will
be
an
empty
Print
the
location
of
documentation
files
.
string
if
<
literal
>--
without
-
docdir
</>
was
specified
when
</
para
>
<
productname
>
PostgreSQL
</>
was
built
.)
</
listitem
>
</
varlistentry
>
<
varlistentry
>
<
term
><
option
>--
htmldir
</
option
></>
<
listitem
>
<
para
>
Print
the
location
of
HTML
documentation
files
.
</
para
>
</
para
>
</
listitem
>
</
listitem
>
</
varlistentry
>
</
varlistentry
>
...
@@ -284,6 +291,7 @@
...
@@ -284,6 +291,7 @@
<
option
>--
cflags
</
option
>,
<
option
>--
cflags_sl
</
option
>,
<
option
>--
cflags
</
option
>,
<
option
>--
cflags_sl
</
option
>,
<
option
>--
ldflags
</
option
>,
<
option
>--
ldflags_sl
</
option
>,
<
option
>--
ldflags
</
option
>,
<
option
>--
ldflags_sl
</
option
>,
and
<
option
>--
libs
</
option
>
are
new
in
<
productname
>
PostgreSQL
</>
8.1
.
and
<
option
>--
libs
</
option
>
are
new
in
<
productname
>
PostgreSQL
</>
8.1
.
The
option
<
option
>--
htmldir
</
option
>
is
new
in
<
productname
>
PostgreSQL
</>
8.4
.
</
para
>
</
para
>
<
para
>
<
para
>
...
...
src/bin/pg_config/pg_config.c
View file @
84ce707b
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
*
*
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.2
6 2008/01/01 19:45:55 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.2
7 2008/02/18 14:51:48 petere
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -97,6 +97,18 @@ show_docdir(bool all)
...
@@ -97,6 +97,18 @@ show_docdir(bool all)
printf
(
"%s
\n
"
,
path
);
printf
(
"%s
\n
"
,
path
);
}
}
static
void
show_htmldir
(
bool
all
)
{
char
path
[
MAXPGPATH
];
if
(
all
)
printf
(
"HTMLDIR = "
);
get_html_path
(
mypath
,
path
);
cleanup_path
(
path
);
printf
(
"%s
\n
"
,
path
);
}
static
void
static
void
show_includedir
(
bool
all
)
show_includedir
(
bool
all
)
{
{
...
@@ -369,6 +381,7 @@ typedef struct
...
@@ -369,6 +381,7 @@ typedef struct
static
const
InfoItem
info_items
[]
=
{
static
const
InfoItem
info_items
[]
=
{
{
"--bindir"
,
show_bindir
},
{
"--bindir"
,
show_bindir
},
{
"--docdir"
,
show_docdir
},
{
"--docdir"
,
show_docdir
},
{
"--htmldir"
,
show_htmldir
},
{
"--includedir"
,
show_includedir
},
{
"--includedir"
,
show_includedir
},
{
"--pkgincludedir"
,
show_pkgincludedir
},
{
"--pkgincludedir"
,
show_pkgincludedir
},
{
"--includedir-server"
,
show_includedir_server
},
{
"--includedir-server"
,
show_includedir_server
},
...
@@ -401,6 +414,7 @@ help(void)
...
@@ -401,6 +414,7 @@ help(void)
printf
(
_
(
"Options:
\n
"
));
printf
(
_
(
"Options:
\n
"
));
printf
(
_
(
" --bindir show location of user executables
\n
"
));
printf
(
_
(
" --bindir show location of user executables
\n
"
));
printf
(
_
(
" --docdir show location of documentation files
\n
"
));
printf
(
_
(
" --docdir show location of documentation files
\n
"
));
printf
(
_
(
" --htmldir show location of HTML documentation files
\n
"
));
printf
(
_
(
" --includedir show location of C header files of the client
\n
"
printf
(
_
(
" --includedir show location of C header files of the client
\n
"
" interfaces
\n
"
));
" interfaces
\n
"
));
printf
(
_
(
" --pkgincludedir show location of other C header files
\n
"
));
printf
(
_
(
" --pkgincludedir show location of other C header files
\n
"
));
...
...
src/include/port.h
View file @
84ce707b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.11
6 2008/01/01 19:45:56 momjian
Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.11
7 2008/02/18 14:51:48 petere
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -42,6 +42,7 @@ extern void get_lib_path(const char *my_exec_path, char *ret_path);
...
@@ -42,6 +42,7 @@ extern void get_lib_path(const char *my_exec_path, char *ret_path);
extern
void
get_pkglib_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_pkglib_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_locale_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_locale_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_doc_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_doc_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_html_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_man_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
void
get_man_path
(
const
char
*
my_exec_path
,
char
*
ret_path
);
extern
bool
get_home_path
(
char
*
ret_path
);
extern
bool
get_home_path
(
char
*
ret_path
);
extern
void
get_parent_directory
(
char
*
path
);
extern
void
get_parent_directory
(
char
*
path
);
...
...
src/port/Makefile
View file @
84ce707b
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
# OBJS adds additional object files that are always compiled.
# OBJS adds additional object files that are always compiled.
#
#
# IDENTIFICATION
# IDENTIFICATION
# $PostgreSQL: pgsql/src/port/Makefile,v 1.3
5 2007/09/28 22:25:49 tgl
Exp $
# $PostgreSQL: pgsql/src/port/Makefile,v 1.3
6 2008/02/18 14:51:48 petere
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -84,6 +84,7 @@ pg_config_paths.h: $(top_builddir)/src/Makefile.global
...
@@ -84,6 +84,7 @@ pg_config_paths.h: $(top_builddir)/src/Makefile.global
echo
"#define PKGLIBDIR
\"
$(pkglibdir)
\"
"
>>
$@
echo
"#define PKGLIBDIR
\"
$(pkglibdir)
\"
"
>>
$@
echo
"#define LOCALEDIR
\"
$(localedir)
\"
"
>>
$@
echo
"#define LOCALEDIR
\"
$(localedir)
\"
"
>>
$@
echo
"#define DOCDIR
\"
$(docdir)
\"
"
>>
$@
echo
"#define DOCDIR
\"
$(docdir)
\"
"
>>
$@
echo
"#define HTMLDIR
\"
$(htmldir)
\"
"
>>
$@
echo
"#define MANDIR
\"
$(mandir)
\"
"
>>
$@
echo
"#define MANDIR
\"
$(mandir)
\"
"
>>
$@
clean distclean maintainer-clean
:
clean distclean maintainer-clean
:
...
...
src/port/path.c
View file @
84ce707b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/path.c,v 1.7
4 2008/01/01 19:46:00 momjian
Exp $
* $PostgreSQL: pgsql/src/port/path.c,v 1.7
5 2008/02/18 14:51:48 petere
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -599,6 +599,15 @@ get_doc_path(const char *my_exec_path, char *ret_path)
...
@@ -599,6 +599,15 @@ get_doc_path(const char *my_exec_path, char *ret_path)
make_relative_path
(
ret_path
,
DOCDIR
,
PGBINDIR
,
my_exec_path
);
make_relative_path
(
ret_path
,
DOCDIR
,
PGBINDIR
,
my_exec_path
);
}
}
/*
* get_html_path
*/
void
get_html_path
(
const
char
*
my_exec_path
,
char
*
ret_path
)
{
make_relative_path
(
ret_path
,
HTMLDIR
,
PGBINDIR
,
my_exec_path
);
}
/*
/*
* get_man_path
* get_man_path
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment