From: Tom Yu Date: Wed, 18 Apr 2007 22:16:51 +0000 (+0000) Subject: pull up r19472 from trunk X-Git-Tag: krb5-1.6.1-final~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=289cde1994cb0bb1731384cfebe95d22e62b4fc2;p=krb5.git pull up r19472 from trunk r19472@cathode-dark-space: kpkoch | 2007-04-14 14:06:26 -0400 Target_Version: 1.6.1 Ticket: 5521 Tags: pullup Leave built installers in their temp areas and change final copy step to copy them into from their new location. Delay cleaning up the temp areas until after that copy. ticket: 5521 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19503 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/build/BKWconfig.xml b/src/windows/build/BKWconfig.xml index b7c11d181..93167f3dc 100644 --- a/src/windows/build/BKWconfig.xml +++ b/src/windows/build/BKWconfig.xml @@ -43,7 +43,7 @@ - > + @@ -164,16 +164,16 @@ - + - - + + - - - - + + + + diff --git a/src/windows/build/bkw.pl b/src/windows/build/bkw.pl index 6ea7c7f33..f397654a7 100644 --- a/src/windows/build/bkw.pl +++ b/src/windows/build/bkw.pl @@ -245,7 +245,7 @@ sub main { # Test the unix find command: if (! exists $odr->{unixfind}->{value}) { $odr->{unixfind}->{value} = "C:\\tools\\cygwin\\bin"; - } + } local $unixfind = $odr->{unixfind}->{value}; local $savedPATH = $ENV{PATH}; @@ -629,23 +629,22 @@ sub main { !system("rename killer.exe Killer.exe") or die "Error -- Couldn't rename killer.exe"; !system("makensis kfw.nsi") or die "Error -- executable installer build failed."; - chdir("$wd") or die "Fatal -- Couldn't cd to $wd"; +# Begin packaging extra items: + chdir($wd) or die "Fatal -- Couldn't cd to $wd"; print "Info -- chdir to ".`cd`."\n" if ($verbose); - !system("xcopy /s $wd\\buildwix\\*.msi $wd\\staging\\install\\wix") or die "Fatal -- Couldn't copy $wd\\buildwix\\*.msi."; - !system("del $wd\\buildnsi\\killer.exe") or die "Fatal -- Couldn't clean $wd\\buildnsi\\killer.exe."; - !system("xcopy /s $wd\\buildnsi\\*.exe $wd\\staging\\install\\nsis") or die "Fatal -- Couldn't copy $wd\\buildnsi\\install\\nsis\\*.exe."; - !system("rm -rf $wd\\buildwix") or die "Fatal -- Couldn't remove $wd\\buildwix."; - !system("rm -rf $wd\\buildnsi") or die "Fatal -- Couldn't remove $wd\\buildnsi."; -# Begin packaging extra items: zipXML($config->{Stages}->{PostPackage}, $config); ## Make zips. $config->{Stages}->{PostPackage}->{CopyList}->{Config} = $config->{Stages}->{PostPackage}->{Config}; ## Use the post package config. $config->{Stages}->{PostPackage}->{CopyList}->{Config}->{From}->{root} = "$src\\pismere"; - $config->{Stages}->{PostPackage}->{CopyList}->{Config}->{To}->{root} = "$out"; + $config->{Stages}->{PostPackage}->{CopyList}->{Config}->{To}->{root} = $out; copyFiles($config->{Stages}->{PostPackage}->{CopyList}, $config); ## Copy any files - print "Info -- chdir to ".`cd`."\n" if ($verbose); + !system("rm -rf $wd\\buildwix") or die "Fatal -- Couldn't remove $wd\\buildwix."; + !system("rm -rf $wd\\buildnsi") or die "Fatal -- Couldn't remove $wd\\buildnsi."; + + chdir($out) or die "Fatal -- Couldn't cd to $out"; + print "Info -- chdir to ".`cd`."\n" if ($verbose); if ($odr->{sign}->{def}) { signFiles($config->{Stages}->{PostPackage}->{Config}->{Signing}, $config); }