From: Kevin Koch Date: Sat, 14 Apr 2007 18:06:26 +0000 (+0000) Subject: Leave built installers in their temp areas and change final copy step to copy them... X-Git-Tag: krb5-1.7-alpha1~1140 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4df20a61cde4507f3d781ecd2fcc77ec4e53622d;p=krb5.git 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 Target_Version: 1.6.1 Ticket: 5521 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19472 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); }