autogen.sh: support for default distro config
Always try to read distro-configs/default.conf (if existing) before any option parsing. That way, downstreams (distros, etc) can just place there site config into the tree without having to pass any additional options to autogen.sh, and even automatic invocations will always have the right parameters. Change-Id: Ic5bf68adc719476d374cf03e31e054b69c931b72 Reviewed-on: https://gerrit.libreoffice.org/1096 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
This commit is contained in:
parent
30bd9fbd93
commit
c1caa1dca8
1 changed files with 6 additions and 0 deletions
|
@ -103,6 +103,12 @@ if (!@ARGV) {
|
|||
@cmdline_args = @ARGV;
|
||||
}
|
||||
|
||||
my $default_config = "distro-configs/default.conf";
|
||||
if (-f $default_config) {
|
||||
print STDERR "Reading default config file: $default_config\n";
|
||||
push @args, read_args ($default_config);
|
||||
}
|
||||
|
||||
my @args;
|
||||
for my $arg (@cmdline_args) {
|
||||
if ($arg eq '--clean') {
|
||||
|
|
Loading…
Reference in a new issue