worker.pm (9780544f) worker.pm (b14cb721)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 3112 unchanged lines hidden (view full) ---

3121################################################
3122# Including a license text into setup script
3123################################################
3124
3125sub put_license_into_setup
3126{
3127 my ($installdir, $includepatharrayref) = @_;
3128
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 3112 unchanged lines hidden (view full) ---

3121################################################
3122# Including a license text into setup script
3123################################################
3124
3125sub put_license_into_setup
3126{
3127 my ($installdir, $includepatharrayref) = @_;
3128
3129 # find and read english license file
3129 # find and read the license file
3130 my $licenselanguage = "en-US"; # always english !
3130 my $licenselanguage = "en-US"; # always english !
3131 # my $licensefilename = "LICENSE_" . $licenselanguage;
3132 my $licensefilename = "license_" . $licenselanguage . ".txt";
3131 my $licensefilename = "LICENSE";
3132# my $licensefilename = "LICENSE" . ".txt";
3133 my $licenseincludepatharrayref = get_language_specific_include_pathes($includepatharrayref, $licenselanguage);
3134
3135 my $licenseref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilename, $licenseincludepatharrayref, 0);
3136 if ($$licenseref eq "") { installer::exiter::exit_program("ERROR: Could not find License file $licensefilename!", "put_license_into_setup"); }
3137 my $licensefile = installer::files::read_file($$licenseref);
3138
3139 # Read setup
3140 my $setupfilename = $installdir . $installer::globals::separator . "setup";

--- 292 unchanged lines hidden ---
3133 my $licenseincludepatharrayref = get_language_specific_include_pathes($includepatharrayref, $licenselanguage);
3134
3135 my $licenseref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilename, $licenseincludepatharrayref, 0);
3136 if ($$licenseref eq "") { installer::exiter::exit_program("ERROR: Could not find License file $licensefilename!", "put_license_into_setup"); }
3137 my $licensefile = installer::files::read_file($$licenseref);
3138
3139 # Read setup
3140 my $setupfilename = $installdir . $installer::globals::separator . "setup";

--- 292 unchanged lines hidden ---