summaryrefslogtreecommitdiff
path: root/postprocess
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-01 12:16:45 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-01 12:32:24 +0200
commit5f632a87abd256e608cf568d035130c2cb19f4d3 (patch)
tree7d445328a6e6138bc6eebc48dce49477994bc7fd /postprocess
parent8eeb0acb445641bfcad5066ed0561c35d7c1c2f7 (diff)
Don't scribble into SRCDIR
Change-Id: I923a3dfe59bf4a16700c23bc22d14e3393f77b15
Diffstat (limited to 'postprocess')
-rw-r--r--postprocess/packconfig/packconfig.pl8
1 files changed, 2 insertions, 6 deletions
diff --git a/postprocess/packconfig/packconfig.pl b/postprocess/packconfig/packconfig.pl
index 372ba5e5cba2..0ce653d95dfd 100644
--- a/postprocess/packconfig/packconfig.pl
+++ b/postprocess/packconfig/packconfig.pl
@@ -217,12 +217,11 @@ sub create_zip_archive
print_message("creating config archive ...") if $verbose;
my $zip = Archive::Zip->new();
- # on Mac OS X Intel we have unxmacxi.pro, on Mac OS X PowerPC unxmacxp.pro .. and so on
my $platform = $ENV{INPATH};
foreach ( sort keys %{$zip_hash_ref} ) {
my $path = "$files_path/$_";
- # only Mac OS X Aqua is concerned here
+ # only Mac OS X is concerned here
# but changes for other platforms can easely be added following the same principle
if ( ( $platform =~ /^.*macx*/) && ($path =~ /^.*menubar.xml/ ) ) {
$path = modify_mac_menus($path);
@@ -241,10 +240,7 @@ sub create_zip_archive
sub modify_mac_menus
{
- my $path_base = "$ENV{'SOLARENV'}";
- $path_base =~ s/solenv//;
-
- my $new_file_name = "$path_base"."postprocess"."\/"."$ENV{INPATH}"."\/"."misc"."\/"."$_";
+ my $new_file_name = "$ENV{'WORKDIR'}/CustomTarget/postprocess/misc/$_";
my $new_directory = $new_file_name;
$new_directory =~ s/\/menubar.xml//;