summaryrefslogtreecommitdiffstats
path: root/src/windows/build/makeZip.pl
diff options
context:
space:
mode:
authorKevin Koch <kpkoch@mit.edu>2007-03-31 22:09:23 +0000
committerKevin Koch <kpkoch@mit.edu>2007-03-31 22:09:23 +0000
commit2a87ebd7150af2c72c1de90f81c13ffb3c76ab44 (patch)
tree410a0cadf192226bcf3c3aff905236addf464644 /src/windows/build/makeZip.pl
parentdb7139a29ad32b31ecb9f2905297a4d6c9d1a3b7 (diff)
downloadkrb5-2a87ebd7150af2c72c1de90f81c13ffb3c76ab44.tar.gz
krb5-2a87ebd7150af2c72c1de90f81c13ffb3c76ab44.tar.xz
krb5-2a87ebd7150af2c72c1de90f81c13ffb3c76ab44.zip
Make /OUTDIR absolute instead of relative
Target_Version: 1.6.1 Ticket: 5490 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19367 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/build/makeZip.pl')
-rw-r--r--src/windows/build/makeZip.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/windows/build/makeZip.pl b/src/windows/build/makeZip.pl
index ab1100554a..e54f5a8316 100644
--- a/src/windows/build/makeZip.pl
+++ b/src/windows/build/makeZip.pl
@@ -9,7 +9,7 @@ sub makeZip {
local ($zip, $config) = @_;
local $src = $config->{CommandLine}->{Directories}->{src}->{path};
- local $toPath = $config->{CommandLine}->{Directories}->{out}->{path};
+ local $out = $config->{CommandLine}->{Directories}->{out}->{path};
local @switches = $config->{CommandLine}->{Options};
local $zipname = $zip->{filename};
local $filestem = $config->{Stages}->{PostPackage}->{Config}->{FileStem}->{name};
@@ -45,8 +45,8 @@ sub makeZip {
}
}
- local $ziptemp = "$src\\$toPath\\ziptemp";
- chdir "$src\\$toPath";
+ local $ziptemp = "$out\\ziptemp";
+ chdir "$out";
print "Info -- chdir to ".`cd`."\n" if ($verbose);
system("rm -rf $ziptemp") if (-d $ziptemp);
die "Fatal -- Couldn't remove $ziptemp" if (-d $ziptemp);
@@ -100,8 +100,8 @@ sub makeZip {
$zipfile->addTree('.', $topdir);
if (-e $zipname) {!system("rm -f $zipname") or die "Error -- Couldn't remove $zipname.";}
$zipfile->writeToFileNamed($zipname);
- print "Info -- created $src\\$toPath\\$zipname.\n" if ($verbose);
- # move .zip from <src>/<out>/ziptemp to <src>/<out>.
+ print "Info -- created $out\\$zipname.\n" if ($verbose);
+ # move .zip from <out>/ziptemp to <out>.
!system("mv -f $zipname ..") or die "Error -- Couldn't move $zipname to ..";
}