Changeset 289 for trunk/dasscm
- Timestamp:
- Mar 11, 2009, 7:49:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dasscm/dasscm
r288 r289 560 560 my @others = (); 561 561 562 if ( -f $filename_prod ) { 563 @files = ($basename); 564 } elsif ( -d $dirname_repo ) { 565 find( 566 { 567 wanted => sub { 568 my $name = normalize_path($File::Find::name); 569 $name =~ s|^$dirname_repo||; 570 #print "($name)\n";# . $File::Find::dir . "\n"; 571 if ( not $name ) { 572 # name string is empty (top directory). 573 # do nothing 574 } elsif ( $name =~ m/\.svn/ ) { 575 576 # skip svn meta data 577 } elsif ( -l $_ ) { 578 579 # soft link 580 # important: check for links first 581 # to exclude them from further checks 582 push( @links, $name ); 583 } elsif ( -d $_ ) { 584 #if( $name."/" eq dirname_repo ) { 585 # directories 586 push( @dirs, $name ); 587 #} 588 } elsif ( -f $_ ) { 589 590 # regular file 591 push( @files, $name ); 592 } else { 593 push( @others, $name ); 594 } 595 } 596 }, 597 ($dirname_repo) 598 ); 599 } 562 find( 563 { 564 wanted => sub { 565 my $name = normalize_path($File::Find::name); 566 $name =~ s|^$dirname_repo||; 567 #print "($name)\n";# . $File::Find::dir . "\n"; 568 if ( not $name ) { 569 # name string is empty (top directory). 570 # do nothing 571 } elsif ( $name =~ m/\.svn/ ) { 572 573 # skip svn meta data 574 } elsif ( -l $_ ) { 575 576 # soft link 577 # important: check for links first 578 # to exclude them from further checks 579 push( @links, $name ); 580 } elsif ( -d $_ ) { 581 #if( $name."/" eq dirname_repo ) { 582 # directories 583 push( @dirs, $name ); 584 #} 585 } elsif ( -f $_ ) { 586 587 # regular file 588 push( @files, $name ); 589 } else { 590 push( @others, $name ); 591 } 592 } 593 }, 594 ($filename_repo) 595 ); 600 596 601 597 return ( sort( @dirs, @files ) );
Note:
See TracChangeset
for help on using the changeset viewer.