From b412daf79f2df41f88c6eacd09f3924e376ddec2 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 11 Feb 2020 12:02:40 +0100 Subject: Introduce INCLUDE: in the distro-configs... ...to be able to have a common base for things, and then apply some additional stuff on top - in this case the Android branding for the CP builds. Change-Id: I43118bba84fddb8508cc4688c83c2d81a103d781 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88440 Tested-by: Jan Holesovsky Reviewed-by: Jan Holesovsky (cherry picked from commit 8dd75f47d9d571ed557fd360b8f9ff7aaca335af) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88400 Tested-by: Jenkins --- autogen.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 10bdffe610e2..49835ff27e25 100755 --- a/autogen.sh +++ b/autogen.sh @@ -84,6 +84,13 @@ sub read_args($) print STDERR " $opt\n"; } } + } elsif ( /^INCLUDE:(.*)/ ) { + # include another .conf into this one + my $config = "$src_path/distro-configs/$1.conf"; + if (! -f $config) { + invalid_distro ($config, $1); + } + push @lst, read_args ($config); } elsif ( substr($_, 0, 1) eq "#" ) { # comment } elsif ( length == 0 ) { -- cgit