You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-15 01:04:37 +02:00
Set config path in configure script.
This allows the config path to be modified with a parameter to the configure script, though this commit does not do that. Update the Perl code generator to allow literals so that defaults can be C defines rather than static strings.
This commit is contained in:
@ -200,10 +200,12 @@ sub renderOptional
|
||||
{
|
||||
$strBuildSourceOptional .=
|
||||
(defined($strBuildSourceOptional) && !$bSingleLine ? "\n" : '') .
|
||||
"${strIndent} PARSE_RULE_OPTION_OPTIONAL_DEFAULT(\"" .
|
||||
"${strIndent} PARSE_RULE_OPTION_OPTIONAL_DEFAULT(" .
|
||||
($rhOptional->{&CFGDEF_DEFAULT_LITERAL} ? '' : '"') .
|
||||
(defined($rhOptional->{&CFGDEF_TYPE}) && $rhOptional->{&CFGDEF_TYPE} eq CFGDEF_TYPE_TIME ?
|
||||
$rhOptional->{&CFGDEF_DEFAULT} * 1000 : $rhOptional->{&CFGDEF_DEFAULT}) .
|
||||
"\"),\n";
|
||||
($rhOptional->{&CFGDEF_DEFAULT_LITERAL} ? '' : '"') .
|
||||
"),\n";
|
||||
|
||||
$bSingleLine = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user