diff options
author | Jan Holesovsky <kendy@collabora.com> | 2020-02-11 12:02:40 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-02-11 13:49:30 +0100 |
commit | 8dd75f47d9d571ed557fd360b8f9ff7aaca335af (patch) | |
tree | fe2bd46c23e434b931c46e0fb6398d5625264b2e /autogen.sh | |
parent | c069861bf9a32c826cbc86a086a774eba49c4e6f (diff) |
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 <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh index 8c0bb0ade4ba..8a8f4c51b578 100755 --- a/autogen.sh +++ b/autogen.sh @@ -90,6 +90,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 ) { |