Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b268584

Browse files
committed
create_help.pl now is able to process &productname; entity fix PGPRO-616
1 parent 5739395 commit b268584

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/bin/psql/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref
2121
override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
2222
override LDFLAGS := -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport) $(LDFLAGS)
2323

24+
# We need product name in the enviroment of create_help.pl
25+
export PRODUCT_NAME
2426
OBJS= command.o common.o conditional.o copy.o crosstabview.o \
2527
describe.o help.o input.o large_obj.o mainloop.o \
2628
prompt.o psqlscanslash.o sql_help.o startup.o stringutils.o \

src/bin/psql/create_help.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
open(my $fh, '<', "$docdir/$file") or next;
101101
my $filecontent = join('', <$fh>);
102102
close $fh;
103+
# Substitute &productname; entity
104+
$filecontent =~ s/\&productname;/$ENV{PRODUCT_NAME}/gs;
103105

104106
# Ignore files that are not for SQL language statements
105107
$filecontent =~

0 commit comments

Comments
 (0)