diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 17:40:14 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 17:40:14 +0000 |
commit | 33c245142ad2a7ed74d142e5b545de8f5e0cf23d (patch) | |
tree | 9943cf22ba55785e0cae67d77a67e844999b63bc /solenv/bin/deliver.pl | |
parent | ef5e07997b3e829db783f578fa093b3513525644 (diff) |
INTEGRATION: CWS rt23 (1.120.114); FILE MERGED
2007/10/31 07:54:45 rt 1.120.114.5: #i83139# Double 'my' declaration in same scope.
2007/10/31 07:48:24 rt 1.120.114.4: RESYNC: (1.120-1.122); FILE MERGED
2007/10/29 15:31:33 rt 1.120.114.3: #i82316# Do not create solver's 'so' subdirectory per default.
2007/10/08 11:47:27 rt 1.120.114.2: #i82316# Reduce magic: do not deliver from '%__SRC%/bin/so' any more if not explicitly written in d.lst.
2007/10/08 09:53:23 rt 1.120.114.1: #i82316# Nothing gets automatically delivered from <module>\common[.pro]\bin\so. Removing this unnecessary rule.
Diffstat (limited to 'solenv/bin/deliver.pl')
-rwxr-xr-x | solenv/bin/deliver.pl | 54 |
1 files changed, 7 insertions, 47 deletions
diff --git a/solenv/bin/deliver.pl b/solenv/bin/deliver.pl index c25479209d38..a1d137a6b918 100755 --- a/solenv/bin/deliver.pl +++ b/solenv/bin/deliver.pl @@ -7,9 +7,9 @@ eval 'exec perl -wS $0 ${1+"$@"}' # # $RCSfile: deliver.pl,v $ # -# $Revision: 1.122 $ +# $Revision: 1.123 $ # -# last change: $Author: rt $ $Date: 2007-10-30 10:37:49 $ +# last change: $Author: hr $ $Date: 2007-11-01 18:40:14 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -51,7 +51,7 @@ use File::Spec; ( $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/; -$id_str = ' $Revision: 1.122 $ '; +$id_str = ' $Revision: 1.123 $ '; $id_str =~ /Revision:\s+(\S+)\s+\$/ ? ($script_rev = $1) : ($script_rev = "-"); @@ -169,12 +169,9 @@ exit($error); sub do_copy { - # We need to copy up to four times: - # from the platform dependent output tree, - # from the SO platform dependent tree, - # from the common output tree, - # and from the SO common output tree - # in this order. + # We need to copy two times: + # from the platform dependent output tree + # and from the common output tree my ($dependent, $common, $from, $to, $file_list); my $line = shift; my $touch = 0; @@ -184,14 +181,6 @@ sub do_copy print "copy dependent: from: $from, to: $to\n" if $is_debug; glob_and_copy($from, $to, $touch); - my $line_so = mod_so($line); - if ( $line_so ) { - my $dependent = expand_macros($line_so); - ($from, $to) = split(' ', $dependent); - print "copy dependent: from: $from, to: $to\n" if $is_debug; - glob_and_copy($from, $to, $touch); - } - if ($delete_common && $common_build && ( $line !~ /%COMMON_OUTDIR%/ ) ) { $line =~ s/%__SRC%/%COMMON_OUTDIR%/ig; if ( $line =~ /%COMMON_OUTDIR%/ ) { @@ -200,14 +189,6 @@ sub do_copy ($from, $to) = split(' ', $common); print "copy common: from: $from, to: $to\n" if $is_debug; glob_and_copy($from, $to, $touch); - - my $line_so = mod_so($line); - if ( $line_so ) { - $common = expand_macros($line_so); - ($from, $to) = split(' ', $common); - print "copy common: from: $from, to: $to\n" if $is_debug; - glob_and_copy($from, $to, $touch); - } } } } @@ -641,25 +622,6 @@ sub expand_macros return $line; } -sub mod_so -{ - my $line = shift; - - if ( $line =~ s/(%__SRC%[\\|\/]bin)/$1\\so/i ) { - if ( $line =~ s/(%_DEST%[\\|\/]\w+%_EXT%)/$1\\so/i ) { - return $line; - } - } - elsif ( $line =~ s/(%COMMON_OUTDIR%[\\|\/]bin)/$1\\so/i ) { - if ( $line =~ s/(%COMMON_DEST%[\\|\/]\w+%_EXT%)/$1\\so/i ) { - return $line; - } - } - else { - return undef; - } -} - sub walk_action_data { # all actions have to be excuted relative to the prj directory @@ -837,7 +799,7 @@ sub copy_if_newer # copy to temporary file first and rename later # to minimize the possibility for race conditions local $temp_file = sprintf('%s.%d-%d', $to, $$, time()); - my $rc = ''; + $rc = ''; if (($strip ne '') && (defined $ENV{PROEXT}) && (is_unstripped($from))) { $rc = strip_target($from, $temp_file); } else { @@ -1045,10 +1007,8 @@ sub push_default_actions push(@action_data, ['mkdir', "%COMMON_DEST%/inc%_EXT%/$module"]); } } - push(@action_data, ['mkdir', "%_DEST%/bin%_EXT%/so"]); push(@action_data, ['mkdir', "%_DEST%/res%_EXT%/img"]); if ( $common_build ) { - push(@action_data, ['mkdir', "%COMMON_DEST%/bin%_EXT%/so"]); push(@action_data, ['mkdir', "%COMMON_DEST%/res%_EXT%/img"]); } |