diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /scripts/headers_install.pl | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'scripts/headers_install.pl')
-rw-r--r-- | scripts/headers_install.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl index 4ca3be3b2e50..efb3be10d428 100644 --- a/scripts/headers_install.pl +++ b/scripts/headers_install.pl | |||
@@ -45,6 +45,13 @@ foreach my $file (@files) { | |||
45 | close $in; | 45 | close $in; |
46 | 46 | ||
47 | system $unifdef . " $tmpfile > $installdir/$file"; | 47 | system $unifdef . " $tmpfile > $installdir/$file"; |
48 | # unifdef will exit 0 on success, and will exit 1 when the | ||
49 | # file was processed successfully but no changes were made, | ||
50 | # so abort only when it's higher than that. | ||
51 | my $e = $? >> 8; | ||
52 | if ($e > 1) { | ||
53 | die "$tmpfile: $!\n"; | ||
54 | } | ||
48 | unlink $tmpfile; | 55 | unlink $tmpfile; |
49 | } | 56 | } |
50 | exit 0; | 57 | exit 0; |