From c1caa1dca8dfca3f28a23e861a47a619753804ef Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux ITS" Date: Sat, 17 Nov 2012 11:12:31 +0100 Subject: 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 Tested-by: Andras Timar --- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autogen.sh b/autogen.sh index 663a4ed408ba..c5fb99c30144 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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') { -- cgit