for invocations of `rm' without `-f'.
* tests/mclean.test: Adjusted to prevent triggering the above
test.
+2001-03-09 Pavel Roskin <proski@gnu.org>
+
+ * Makefile.am (maintainer-check): Scan all *.am files and tests
+ for invocations of `rm' without `-f'.
+ * tests/mclean.test: Adjusted to prevent triggering the above
+ test.
+
2001-03-09 Tom Tromey <tromey@redhat.com>
* automake.in (scan_one_autoconf_file): Fixed comment to avoid
echo "Found too many uses of '\$${' in the lines above." 1>&2; \
exit 1; \
else :; fi
+## Make sure `rm' is called with `-f'.
+ @if egrep '\<rm ([^-]|\-[^f ]*\>)' \
+ $(srcdir)/[a-z]*.am $(srcdir)/tests/*.test | \
+ fgrep -v '##'; then \
+ echo "Suspicious 'rm' invocation." 1>&2; \
+ exit 1; \
+ else :; fi
## Make sure all invocations of mkinstalldirs are correct.
@if fgrep -n 'mkinstalldirs' $(srcdir)/[a-z]*.am | \
fgrep -v '$$(mkinstalldirs)'; then \
echo "Found too many uses of '\$${' in the lines above." 1>&2; \
exit 1; \
else :; fi
+ @if egrep '\<rm ([^-]|\-[^f ]*\>)' \
+ $(srcdir)/[a-z]*.am $(srcdir)/tests/*.test | \
+ fgrep -v '##'; then \
+ echo "Suspicious 'rm' invocation." 1>&2; \
+ exit 1; \
+ else :; fi
@if fgrep -n 'mkinstalldirs' $(srcdir)/[a-z]*.am | \
fgrep -v '$$(mkinstalldirs)'; then \
echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
echo "Found too many uses of '\$${' in the lines above." 1>&2; \
exit 1; \
else :; fi
+## Make sure `rm' is called with `-f'.
+ @if egrep '\<rm ([^-]|\-[^f ]*\>)' \
+ $(srcdir)/[a-z]*.am $(srcdir)/tests/*.test | \
+ fgrep -v '##'; then \
+ echo "Suspicious 'rm' invocation." 1>&2; \
+ exit 1; \
+ else :; fi
## Make sure all invocations of mkinstalldirs are correct.
@if fgrep -n 'mkinstalldirs' $(srcdir)/[a-z]*.am | \
fgrep -v '$$(mkinstalldirs)'; then \