summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2012-01-17 13:34:52 +0000
committerJürgen Schmidt <jsc@apache.org>2012-01-17 13:34:52 +0000
commit63480c993d8e2fb0929d3c39f621aae9443faa04 (patch)
tree84ce38d878887b101fea762c4cc387073a8d06e2 /solenv
parent4166969f3b8ed05e91c10a724ce7bd39074012a1 (diff)
adapt setup package scripts to handle special DS_Store file for developer snapshot builds
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/make_installer.pl7
-rw-r--r--solenv/bin/modules/installer/globals.pm1
-rw-r--r--solenv/bin/modules/installer/scriptitems.pm19
3 files changed, 24 insertions, 3 deletions
diff --git a/solenv/bin/make_installer.pl b/solenv/bin/make_installer.pl
index 73c4e87771ad..49e68ca14210 100644
--- a/solenv/bin/make_installer.pl
+++ b/solenv/bin/make_installer.pl
@@ -258,7 +258,6 @@ if ( $installer::globals::globallogging ) { installer::files::save_hash($logging
installer::ziplist::overwrite_ooovendor( $allvariableshashref );
if ( $installer::globals::globallogging ) { installer::files::save_hash($loggingdir . "allvariables3c.log", $allvariableshashref); }
-
########################################################
# Check if this is simple packaging mechanism
########################################################
@@ -341,6 +340,11 @@ if ($installer::globals::languages_defined_in_productlist) { installer::language
if ( $installer::globals::iswindowsbuild ) { installer::control::read_encodinglist($includepatharrayref); }
+####################################################################
+# MacOS dmg build requires special DS_Store file to arrange icons
+####################################################################
+if (($installer::globals::ismacdmgbuild) && ($installer::globals::product eq "OpenOffice_Dev")) { $installer::globals::devsnapshotbuild = 1; }
+
#####################################################################
# Including additional inc files for variable settings, if defined
#####################################################################
@@ -483,6 +487,7 @@ if (( ! $allvariableshashref->{'XPDINSTALLER'} ) || ( ! $installer::globals::isx
if ( $installer::globals::languagepack ) { installer::scriptitems::use_langpack_copy_scpaction($scpactionsinproductarrayref); }
if ( $installer::globals::patch ) { installer::scriptitems::use_patch_copy_scpaction($scpactionsinproductarrayref); }
+if (($installer::globals::devsnapshotbuild)) { installer::scriptitems::use_dev_copy_scpaction($scpactionsinproductarrayref); }
if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "productscpactions1b.log", $scpactionsinproductarrayref); }
# $scpactionsinproductarrayref = installer::scriptitems::remove_scpactions_without_name($scpactionsinproductarrayref);
diff --git a/solenv/bin/modules/installer/globals.pm b/solenv/bin/modules/installer/globals.pm
index 22ee98f60358..4a0f1848b483 100644
--- a/solenv/bin/modules/installer/globals.pm
+++ b/solenv/bin/modules/installer/globals.pm
@@ -346,6 +346,7 @@ BEGIN
$patch_user_dir = 0;
$addchildprojects = 0;
$languagepack = 0;
+ $devsnapshotbuild = 0;
$tab = 0;
$patch = 0;
$patchincludepath = "";
diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm
index 54d22df1e19e..9ae48e52c6b5 100644
--- a/solenv/bin/modules/installer/scriptitems.pm
+++ b/solenv/bin/modules/installer/scriptitems.pm
@@ -605,7 +605,7 @@ sub use_patch_hostname
}
################################################################################
-# Using different HostName for language packs
+# Using langpack copy action for language packs
################################################################################
sub use_langpack_copy_scpaction
@@ -620,7 +620,7 @@ sub use_langpack_copy_scpaction
}
################################################################################
-# Using different HostName for language packs
+# Using copy patch action
################################################################################
sub use_patch_copy_scpaction
@@ -635,6 +635,21 @@ sub use_patch_copy_scpaction
}
################################################################################
+# Using dev copy patch action for developer snapshot builds
+################################################################################
+
+sub use_dev_copy_scpaction
+{
+ my ($scpactionsref) = @_;
+
+ for ( my $i = 0; $i <= $#{$scpactionsref}; $i++ )
+ {
+ my $onescpaction = ${$scpactionsref}[$i];
+ if (( $onescpaction->{'DevCopy'} ) && ( $onescpaction->{'DevCopy'} ne "" )) { $onescpaction->{'Copy'} = $onescpaction->{'DevCopy'}; }
+ }
+}
+
+################################################################################
# Shifting parent directories of URE and Basis layer, so that
# these directories are located below the Brand layer.
# Style: SHIFT_BASIS_INTO_BRAND_LAYER