lxapigen.pl
changeset 155 7acb63a71a55
parent 145 fbb97d2fc0e9
equal deleted inserted replaced
154:978ad040e00e 155:7acb63a71a55
   246 EOF
   246 EOF
   247 ;
   247 ;
   248 
   248 
   249     close(OUT);
   249     close(OUT);
   250 
   250 
   251     if ((system("diff -u '$finalfname' '$outfname'") == -1) || ($? != 0)) {
   251     if ((system("diff -uN '$finalfname' '$outfname'") == -1) || ($? != 0)) {
   252         rename($outfname, $finalfname) or die("Failed to rename '$outfname' to '$finalfname': $!\n");
   252         rename($outfname, $finalfname) or die("Failed to rename '$outfname' to '$finalfname': $!\n");
   253     } else {
   253     } else {
   254         unlink($outfname);  # they match, just delete the new copy so build system doesn't rebuild everything.
   254         unlink($outfname);  # they match, just delete the new copy so build system doesn't rebuild everything.
   255     }
   255     }
   256 }
   256 }