From c9706154479af13ee61b2bca2aa0f5cbc5cac7ba Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 12 Jul 2018 01:43:54 -0400 Subject: [PATCH] lxapigen.sh: Report diffs of new files instead of a weird error. --- lxapigen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxapigen.pl b/lxapigen.pl index bfc723d..89b10b3 100755 --- a/lxapigen.pl +++ b/lxapigen.pl @@ -248,7 +248,7 @@ sub typesize { 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.