From 2a87ebd7150af2c72c1de90f81c13ffb3c76ab44 Mon Sep 17 00:00:00 2001 From: Kevin Koch Date: Sat, 31 Mar 2007 22:09:23 +0000 Subject: 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 --- src/windows/build/makeZip.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/windows/build/makeZip.pl') 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 //ziptemp to /. + print "Info -- created $out\\$zipname.\n" if ($verbose); + # move .zip from /ziptemp to . !system("mv -f $zipname ..") or die "Error -- Couldn't move $zipname to .."; } -- cgit