build_package.pl
changeset 36 c2062b9445d0
parent 35 4d500511bf5a
child 37 2e0ebeeeaf52
equal deleted inserted replaced
35:4d500511bf5a 36:c2062b9445d0
   242 	if (-d "$sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel") # project dir
   242 	if (-d "$sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel") # project dir
   243 	{
   243 	{
   244 		print "rmdir /S $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel\n";
   244 		print "rmdir /S $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel\n";
   245 		system("rmdir /S /Q $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel");
   245 		system("rmdir /S /Q $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel");
   246 	}
   246 	}
   247 	if (-d "$sWORKING_DRIVE\\fbf_job\\$sJobNumberKey.$nJobNumber") # build drive
   247 	my $sBuildLabel = $sJobNumberKey;
   248 	{
   248 	$sBuildLabel =~ s/\.T$//;
   249 		print "rmdir /S $sWORKING_DRIVE\\fbf_job\\$sJobNumberKey.$nJobNumber\n";
   249 	if (-d "$sWORKING_DRIVE\\fbf_job\\$sBuildLabel.$nJobNumber") # build drive
   250 		system("rmdir /S /Q $sWORKING_DRIVE\\fbf_job\\$sJobNumberKey.$nJobNumber");
   250 	{
       
   251 		print "rmdir /S $sWORKING_DRIVE\\fbf_job\\$sBuildLabel.$nJobNumber\n";
       
   252 		system("rmdir /S /Q $sWORKING_DRIVE\\fbf_job\\$sBuildLabel.$nJobNumber");
   251 	}
   253 	}
   252 }
   254 }
   253 
   255 
   254 sub mkdir_unique
   256 sub mkdir_unique
   255 {
   257 {