]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix `./configure --update` with cache files generated before v3.2.
authorSadie Powell <sadie@witchery.services>
Mon, 18 Jan 2021 06:54:01 +0000 (06:54 +0000)
committerSadie Powell <sadie@witchery.services>
Mon, 18 Jan 2021 06:54:01 +0000 (06:54 +0000)
make/configure.pm

index b20639d3480e84e3f78784a41636feac60d59c07..91e2cc7d680aebff0bda8eec5d0151d1decc36cd 100644 (file)
@@ -191,6 +191,7 @@ sub cmd_update {
        print_error "You have not run $0 before. Please do this before trying to update the generated files." unless -f CONFIGURE_CACHE_FILE;
        say 'Updating...';
        my %config = read_config_file(CONFIGURE_CACHE_FILE);
+       $config{EXAMPLE_DIR} //= catdir $config{CONFIG_DIR}, 'examples';
        my %compiler = get_compiler_info($config{CXX});
        my %version = get_version $config{DISTRIBUTION};
        parse_templates(\%config, \%compiler, \%version);