summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-04-25 06:09:55 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-04-25 21:10:11 (GMT)
commit14bc39bcb59ce36d1d2fd156afeaf3aa7bb5ad84 (patch)
tree9ab4f1230315190fd6480e5ee71ec316f5df324b /bin
parentb962c7ad42020c762830a4740bc779423ca32ac9 (diff)
downloadhdf5-14bc39bcb59ce36d1d2fd156afeaf3aa7bb5ad84.zip
hdf5-14bc39bcb59ce36d1d2fd156afeaf3aa7bb5ad84.tar.gz
hdf5-14bc39bcb59ce36d1d2fd156afeaf3aa7bb5ad84.tar.bz2
Updated bin/trace to emit errors and reordered autogen.sh processing
so that script failures leave the library in a non-compilable state, making it harder to ignore errors.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/trace15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/trace b/bin/trace
index 4467814..3f532ab 100755
--- a/bin/trace
+++ b/bin/trace
@@ -161,6 +161,8 @@ $Source = "";
##############################################################################
# Print an error message.
#
+my $found_errors = 0;
+
sub errmesg ($$@) {
my ($file, $func, @mesg) = @_;
my ($mesg) = join "", @mesg;
@@ -170,6 +172,8 @@ sub errmesg ($$@) {
$lineno = tr/\n/\n/;
}
+ $found_errors = 1;
+
print "$file: in function \`$func\':\n";
print "$file:$lineno: $mesg\n";
}
@@ -339,4 +343,13 @@ for $file (@ARGV) {
}
}
-printf "Finished processing HDF5 API calls\n"
+if ($found_errors eq 1) {
+ printf "\n";
+ printf "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
+ printf "*** ERRORS FOUND *** ERRORS FOUND *** ERRORS FOUND ****\n";
+ printf "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
+ exit 1;
+} else {
+ printf "Finished processing HDF5 API calls\n";
+}
+