Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 468509667 for ; Wed, 4 Apr 2012 11:40:51 +0000 (UTC) Received: (qmail 12971 invoked by uid 500); 4 Apr 2012 11:40:50 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 12917 invoked by uid 500); 4 Apr 2012 11:40:50 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 12805 invoked by uid 99); 4 Apr 2012 11:40:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 11:40:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 11:40:48 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6A27223889FD; Wed, 4 Apr 2012 11:40:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1309339 - in /incubator/ooo/trunk/main: extensions.lst solenv/bin/modules/ExtensionsLst.pm solenv/bin/modules/installer/scriptitems.pm Date: Wed, 04 Apr 2012 11:40:28 -0000 To: ooo-commits@incubator.apache.org From: af@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120404114028.6A27223889FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: af Date: Wed Apr 4 11:40:27 2012 New Revision: 1309339 URL: http://svn.apache.org/viewvc?rev=1309339&view=rev Log: Found a way to include local extensions (like presentation minimizer) via extensions.lst Modified: incubator/ooo/trunk/main/extensions.lst incubator/ooo/trunk/main/solenv/bin/modules/ExtensionsLst.pm incubator/ooo/trunk/main/solenv/bin/modules/installer/scriptitems.pm Modified: incubator/ooo/trunk/main/extensions.lst URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/extensions.lst?rev=1309339&r1=1309338&r2=1309339&view=diff ============================================================================== --- incubator/ooo/trunk/main/extensions.lst (original) +++ incubator/ooo/trunk/main/extensions.lst Wed Apr 4 11:40:27 2012 @@ -34,10 +34,10 @@ # Some extensions that are installed indepently of the language. #[ language=all && ENABLE_PRESENTER_SCREEN=YES ] -# file://presenter/presenter-screen.oxt + file://presenter/presenter-screen.oxt #[ language=all && ENABLE_MINIMIZER=YES ] -# file://minimizer/presentation-minimizer.oxt + file://minimizer/presentation-minimizer.oxt Modified: incubator/ooo/trunk/main/solenv/bin/modules/ExtensionsLst.pm URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/modules/ExtensionsLst.pm?rev=1309339&r1=1309338&r2=1309339&view=diff ============================================================================== --- incubator/ooo/trunk/main/solenv/bin/modules/ExtensionsLst.pm (original) +++ incubator/ooo/trunk/main/solenv/bin/modules/ExtensionsLst.pm Wed Apr 4 11:40:27 2012 @@ -591,6 +591,8 @@ sub GetExtensionList ($@) { # Bundling of dictionaires is disabled. } + + return (); } Modified: incubator/ooo/trunk/main/solenv/bin/modules/installer/scriptitems.pm URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/modules/installer/scriptitems.pm?rev=1309339&r1=1309338&r2=1309339&view=diff ============================================================================== --- incubator/ooo/trunk/main/solenv/bin/modules/installer/scriptitems.pm (original) +++ incubator/ooo/trunk/main/solenv/bin/modules/installer/scriptitems.pm Wed Apr 4 11:40:27 2012 @@ -491,7 +491,8 @@ sub remove_not_required_spellcheckerlang return \@filesarray; } -=head3 add_bundled_extension_blobs +=head3 add_bundled_extension_blobs(@filelist) + Add entries for extension blobs to the global file list. Extension blobs, unlike preregistered extensions, are not extracted before included into a pack set. @@ -503,6 +504,7 @@ sub remove_not_required_spellcheckerlang the default set. Extension blobs are placed in gid_Brand_Dir_Share_Extensions_Install. + =cut sub add_bundled_extension_blobs { @@ -510,7 +512,11 @@ sub add_bundled_extension_blobs my @bundle_files = (); my $bundleenv = $ENV{'BUNDLED_EXTENSION_BLOBS'}; - my $bundlesrc = $ENV{'TARFILE_LOCATION'}; + my $bundlehttpsrc = $ENV{'TARFILE_LOCATION'} . $installer::globals::separator; + my $bundlefilesrc = $ENV{SOLARVERSION} + . $installer::globals::separator . $ENV{INPATH} + . $installer::globals::separator . "bin" + . $installer::globals::separator; if ($installer::globals::product =~ /(SDK|URE)/i ) { @@ -519,16 +525,28 @@ sub add_bundled_extension_blobs elsif (defined $bundleenv) { # Use the list of extensions that was explicitly given to configure. - @bundle_files = split(/\s+/, $bundleenv, -1); + for my $name (split(/\s+/, $bundleenv, -1)) + { + push @bundle_files, $bundlehttpsrc . $name; + } } else { - # Add the default rextensions for the current language set. - @bundle_files = ExtensionsLst::GetExtensionList("http|https", @installer::globals::languageproducts); + # Add the default extensions for the current language set. + # http:// extensions are taken from ext_sources/. + for my $name (ExtensionsLst::GetExtensionList("http|https", @installer::globals::languageproducts)) + { + push @bundle_files, $bundlehttpsrc . $name; + } + # file:// extensions are taken from the solver bin/ directory. + for my $name (ExtensionsLst::GetExtensionList("file", @installer::globals::languageproducts)) + { + push @bundle_files, $bundlefilesrc . $name; + } } installer::logger::print_message( - sprintf("preparing %d extension blob%s for language%s %s:\n %s\n", + sprintf("preparing %d extension blob%s for language%s %s:\n", $#bundle_files + 1, $#bundle_files!=0 ? "s" : "", $#installer::globals::languageproducts!=0 ? "s" : "", @@ -543,20 +561,23 @@ sub add_bundled_extension_blobs 'Name' => $basename, 'Styles' => '(PACKED)', 'UnixRights' => '444', - 'sourcepath' => $bundlesrc . $installer::globals::separator . $filename, + 'sourcepath' => $filename, 'modules' => "gid_Module_Dictionaries", 'gid' => "gid_File_Extension_".$basename }; push( @filelist, $onefile); push( @installer::globals::logfileinfo, "\tbundling \"$filename\" extension\n"); + + installer::logger::print_message(" " . $basename . "\n"); } return \@filelist; } -=head3 add_bundled_prereg_extensions +=head3 add_bundled_prereg_extensions(@filelist) + Add entries for preregistered extensions to the global file list. - + The set of extensions to include is taken from the BUNDLED_PREREG_EXTENSIONS environment variable (typically set in configure.) @@ -564,6 +585,7 @@ sub add_bundled_extension_blobs the default set. Preregistered extensions are placed in subdirectories of gid_Brand_Dir_Share_Prereg_Bundled. + =cut sub add_bundled_prereg_extensions { @@ -585,7 +607,10 @@ sub add_bundled_prereg_extensions else { # Add the default rextensions for the current language set. - @bundle_files = ExtensionsLst::GetExtensionList("file", @installer::globals::languageproducts); + + # file:// URLs are currently handled by add_bundled_extension_blobs(@), therefore + # we may not their handling here anmore. + # @bundle_files = ExtensionsLst::GetExtensionList("file", @installer::globals::languageproducts); } installer::logger::print_message(