Changeset 18961

Show
Ignore:
Timestamp:
06/18/06 21:27:41 (2 years ago)
Author:
patrick
Message:

Preserve time stamps and such when copying files during installation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/release/scripts/InstallOps.pm

    r18824 r18961  
    249249   else 
    250250   { 
     251      my @stats = (stat("$src_file"))[8,9]; 
    251252      copy("$src_file", "$inst_dir") or warn "copy: $!\n"; 
     253      utime(@stats, "$inst_dir/$src_file"); 
    252254   } 
    253255 
  • juggler/trunk/release/scripts/install-dir.pl

    r18960 r18961  
    170170 
    171171         # Make a working copy of the input file to be safe. 
     172         my @stats = (stat("$curfile"))[8,9]; 
    172173         copy("$curfile", "$workfile") unless "$curfile" eq "$workfile"; 
    173174 
     
    185186               or warn "WARNING: Could not delete $workfile: $!"; 
    186187         } 
     188 
     189         # Apply the saved attributes of $curfile to $filename. 
     190         utime(@stats, "$filename"); 
    187191 
    188192         installFile("$filename", $uid, $gid, "$mode", "$dest_dir",