clean_package_dirs.pl
changeset 30 45b248d07f63
parent 18 27ea4714a2aa
equal deleted inserted replaced
29:b9212509f335 30:45b248d07f63
    38 	next if ( $sDir eq "." or $sDir eq ".." );
    38 	next if ( $sDir eq "." or $sDir eq ".." );
    39 	next if ( ! -d "$sJOB_BASE_DIR\\$sDir" );
    39 	next if ( ! -d "$sJOB_BASE_DIR\\$sDir" );
    40 	
    40 	
    41 	#print "--- $sDir\n";
    41 	#print "--- $sDir\n";
    42 	
    42 	
    43 	if ( $sDir =~ /^([^.]+)\.(\d+)/ )
    43 	if ( $sDir =~ /^([^.]+)\.T?(\d+)/ )
    44 	{
    44 	{
    45 		my $sBaseName = $1;
    45 		my $sBaseName = $1;
    46 		my $sBuildNumber = $2;
    46 		my $sBuildNumber = $2;
    47 		
    47 		
    48 		my $nTs = (stat("$sJOB_BASE_DIR\\$sDir"))[9]; # modified time
    48 		my $nTs = (stat("$sJOB_BASE_DIR\\$sDir"))[9]; # modified time