lxapigen.sh: Report diffs of new files instead of a weird error. default tip
authorRyan C. Gordon <icculus@icculus.org>
Thu, 12 Jul 2018 01:43:54 -0400
changeset 155 7acb63a71a55
parent 154 978ad040e00e
lxapigen.sh: Report diffs of new files instead of a weird error.
lxapigen.pl
--- a/lxapigen.pl	Wed Jul 11 01:13:42 2018 -0400
+++ b/lxapigen.pl	Thu Jul 12 01:43:54 2018 -0400
@@ -248,7 +248,7 @@
 
     close(OUT);
 
-    if ((system("diff -u '$finalfname' '$outfname'") == -1) || ($? != 0)) {
+    if ((system("diff -uN '$finalfname' '$outfname'") == -1) || ($? != 0)) {
         rename($outfname, $finalfname) or die("Failed to rename '$outfname' to '$finalfname': $!\n");
     } else {
         unlink($outfname);  # they match, just delete the new copy so build system doesn't rebuild everything.