languagepack.pm (9780544f) languagepack.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

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

510 if ($$scriptref eq "") { installer::exiter::exit_program("ERROR: Could not find script file $scriptfilename!", "build_installer_for_languagepack"); }
511 my $scriptfile = installer::files::read_file($$scriptref);
512
513 my $infoline = "Found script file $scriptfilename: $$scriptref \n";
514 push( @installer::globals::logfileinfo, $infoline);
515
516 # find and read english license file
517 my $licenselanguage = "en-US"; # always english !
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

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

510 if ($$scriptref eq "") { installer::exiter::exit_program("ERROR: Could not find script file $scriptfilename!", "build_installer_for_languagepack"); }
511 my $scriptfile = installer::files::read_file($$scriptref);
512
513 my $infoline = "Found script file $scriptfilename: $$scriptref \n";
514 push( @installer::globals::logfileinfo, $infoline);
515
516 # find and read english license file
517 my $licenselanguage = "en-US"; # always english !
518 my $licensefilename = "LICENSE_" . $licenselanguage;
518 my $licensefilename = "LICENSE";
519 my $licenseincludepatharrayref = installer::worker::get_language_specific_include_pathes($includepatharrayref, $licenselanguage);
520
521 my $licenseref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilename, $licenseincludepatharrayref, 0);
522 if ($$licenseref eq "") { installer::exiter::exit_program("ERROR: Could not find License file $licensefilename!", "build_installer_for_languagepack"); }
523 my $licensefile = installer::files::read_file($$licenseref);
524
525 $infoline = "Found licensefile $licensefilename: $$licenseref \n";
526 push( @installer::globals::logfileinfo, $infoline);

--- 35 unchanged lines hidden ---
519 my $licenseincludepatharrayref = installer::worker::get_language_specific_include_pathes($includepatharrayref, $licenselanguage);
520
521 my $licenseref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilename, $licenseincludepatharrayref, 0);
522 if ($$licenseref eq "") { installer::exiter::exit_program("ERROR: Could not find License file $licensefilename!", "build_installer_for_languagepack"); }
523 my $licensefile = installer::files::read_file($$licenseref);
524
525 $infoline = "Found licensefile $licensefilename: $$licenseref \n";
526 push( @installer::globals::logfileinfo, $infoline);

--- 35 unchanged lines hidden ---