Skip to content

Commit

Permalink
lxapigen.sh: Report diffs of new files instead of a weird error.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 12, 2018
1 parent 666c2ed commit c970615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxapigen.pl
Expand Up @@ -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.
Expand Down

0 comments on commit c970615

Please sign in to comment.