* tests/ext.test: Add a comment explaining why an apparently
useless `if' statement is indeed required.
2010-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Add useful comment in test script ext.test.
+ * tests/ext.test: Add a comment explaining why an apparently
+ useless `if' statement is indeed required.
+
Add useful comment in test script obsolete.test.
* tests/obsolte.test: Add a comment explaining why we need
an indirection in adding $AUTOUPDATE to $required.
for ext in f for f90 f95 F F90 F95 r m upc
do
+ # Some versions of the BSD shell wrongly exit when `set -e' is active
+ # if the last command within a compound statement fails and is guarded
+ # by an && only. So we play safe and use the following idiom, instead
+ # of the apparently simpler `grep ... && Exit 1'.
if grep "^$ext\.o:" Makefile.in; then Exit 1; else :; fi
grep "^\.$ext\.o:" Makefile.in
done