dovecot-2.0: make distcheck now runs code via clang static analy...

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 13 16:02:56 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/762a4216352f
changeset: 11140:762a4216352f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 13 16:02:49 2010 +0300
description:
make distcheck now runs code via clang static analyzer if it exists.

diffstat:

 Makefile.am |  12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r caf8c5d39ab2 -r 762a4216352f Makefile.am
--- a/Makefile.am	Tue Apr 13 15:49:14 2010 +0300
+++ b/Makefile.am	Tue Apr 13 16:02:49 2010 +0300
@@ -67,3 +67,15 @@
 CLEANFILES = $(datafiles)
 
 DISTCLEANFILES = $(top_builddir)/dovecot-version.h
+
+distcheck-hook:
+	if which scan-build > /dev/null; then \
+	  cd $(distdir)/_build; \
+	  scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-gssapi=auto --with-libwrap=auto; \
+	  rm -rf scan-reports; \
+	  scan-build -o scan-reports make 2>&1 || exit 1; \
+	  if ! rmdir scan-reports 2>/dev/null; then \
+	    exit 1; \
+	  fi; \
+	  cd ../..; rm -rf $(distdir)/_build/*; \
+	fi


More information about the dovecot-cvs mailing list