apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/build fixwin32mak.pl
Date Tue, 13 Apr 2004 08:56:01 GMT
wrowe       2004/04/13 01:56:01

  Modified:    build    Tag: APR_0_9_BRANCH fixwin32mak.pl
  Log:
    Backport rev 1.6 - fix a serious problem clobbering NWGNUmakefile.mak
    file datestamps.
  
    Ready to blame bad datestamps on a bad tarball... we can only
    touch mak/dep file dates that correspond to a dsp file.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.1   +2 -2      apr/build/fixwin32mak.pl
  
  Index: fixwin32mak.pl
  ===================================================================
  RCS file: /home/cvs/apr/build/fixwin32mak.pl,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- fixwin32mak.pl	4 Feb 2002 18:54:00 -0000	1.5
  +++ fixwin32mak.pl	13 Apr 2004 08:56:01 -0000	1.5.2.1
  @@ -60,14 +60,14 @@
           $dname =~ s/.mak$/.dsp/;
   	@dstat = stat($dname);
           @ostat = stat($oname);    
  -        if ($ostat[9] != $dstat[9]) {
  +        if ($ostat[9] && $dstat[9] && ($ostat[9] != $dstat[9])) {
               @onames = ($oname);
               utime $dstat[9], $dstat[9], @onames;
   	    print "Touched datestamp for " . $oname . " in " . $File::Find::dir . "\n"; 
           }
           $oname =~ s/.mak$/.dep/;
           @ostat = stat($oname);    
  -        if ($ostat[9] != $dstat[9]) {
  +        if ($ostat[9] && $dstat[9] && ($ostat[9] != $dstat[9])) {
               @onames = ($oname);
               utime $dstat[9], $dstat[9], @onames;
   	    print "Touched datestamp for " . $oname . " in " . $File::Find::dir . "\n"; 
  
  
  

Mime
View raw message