From c8211238476a66dc9c1b24066e21e2033d277dac Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 23 Nov 2010 19:54:02 -0500 Subject: [PATCH] --- yaml --- r: 227643 b: refs/heads/master c: 2979076fbf17a0947d6eba367b0cac19c907c160 h: refs/heads/master i: 227641: 3103e4d773e7428112af8a9fb477ad237e8e8cc0 227639: a68b95e63d91c179bcd254cf9e6504aef6664c02 v: v3 --- [refs] | 2 +- trunk/scripts/headers_install.pl | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ab85b832f246..f2ae8f4d7194 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 43f901fbc8ba94bfa8d58155ba9378d7a13af636 +refs/heads/master: 2979076fbf17a0947d6eba367b0cac19c907c160 diff --git a/trunk/scripts/headers_install.pl b/trunk/scripts/headers_install.pl index 4ca3be3b2e50..efb3be10d428 100644 --- a/trunk/scripts/headers_install.pl +++ b/trunk/scripts/headers_install.pl @@ -45,6 +45,13 @@ close $in; system $unifdef . " $tmpfile > $installdir/$file"; + # unifdef will exit 0 on success, and will exit 1 when the + # file was processed successfully but no changes were made, + # so abort only when it's higher than that. + my $e = $? >> 8; + if ($e > 1) { + die "$tmpfile: $!\n"; + } unlink $tmpfile; } exit 0;