Changeset 8716 for trunk/gsdl/perllib/util.pm
- Timestamp:
- 2004-12-01T16:14:11+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/util.pm
r8682 r8716 37 37 # make sure the files we want to delete exist 38 38 # and are regular files 39 foreach $file (@files) {39 foreach my$file (@files) { 40 40 if (!-e $file) { 41 41 print STDERR "util::rm $file does not exist\n"; … … 62 62 63 63 # recursively remove the files 64 foreach $file (@files) {64 foreach my $file (@files) { 65 65 $file =~ s/[\/\\]+$//; # remove trailing slashes 66 66 … … 112 112 113 113 # move the files 114 foreach $file (@srcfiles) {114 foreach my $file (@srcfiles) { 115 115 my $tempdest = $dest; 116 116 if (-d $tempdest) { … … 147 147 148 148 # copy the files 149 foreach $file (@srcfiles) {149 foreach my $file (@srcfiles) { 150 150 my $tempdest = $dest; 151 151 if (-d $tempdest) { … … 190 190 191 191 # copy the files 192 foreach $file (@srcfiles) {192 foreach my $file (@srcfiles) { 193 193 194 194 if (!-e $file) { … … 209 209 my @filedir = readdir (INDIR); 210 210 closedir (INDIR); 211 foreach $f (@filedir) {211 foreach my $f (@filedir) { 212 212 next if $f =~ /^\.\.?$/; 213 213 # copy all the files in this directory … … 252 252 my $dirsofar = ""; 253 253 my $first = 1; 254 foreach $dirname (split ("/", $dir)) {254 foreach my $dirname (split ("/", $dir)) { 255 255 $dirsofar .= "/" unless $first; 256 256 $first = 0; … … 442 442 } 443 443 444 @file1stat = stat ($file1);445 @file2stat = stat ($file2);444 my @file1stat = stat ($file1); 445 my @file2stat = stat ($file2); 446 446 447 447 if (-d $file1) {
Note:
See TracChangeset
for help on using the changeset viewer.