From e505630a922ae0e3983f73af61a7014eefa9ba89 Mon Sep 17 00:00:00 2001 From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 19 Dec 2009 20:52:21 +0000 Subject: [PATCH] Makefile.am: 'make check' now tests the syntax of drivedb.h. git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3005 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/CHANGELOG | 2 ++ smartmontools/Makefile.am | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/smartmontools/CHANGELOG b/smartmontools/CHANGELOG index 2515c9c16..9237d9ee0 100644 --- a/smartmontools/CHANGELOG +++ b/smartmontools/CHANGELOG @@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file. <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> + [CF] Makefile.am: 'make check' now tests the syntax of drivedb.h. + [CF] Cygwin: Open drive database files in text mode. [CF] Cygwin: Check for 'syslogd' and 'syslog-ng' in initd script. diff --git a/smartmontools/Makefile.am b/smartmontools/Makefile.am index 91443b8a7..30aa1e32d 100644 --- a/smartmontools/Makefile.am +++ b/smartmontools/Makefile.am @@ -497,6 +497,14 @@ endif $(MAN2TXT) $< > $@ +# Check drive database syntax +check: + @if ./smartctl -B $(srcdir)/drivedb.h -P showall >/dev/null; then \ + echo "$(srcdir)/drivedb.h: OK"; \ + else \ + echo "$(srcdir)/drivedb.h: Syntax check failed"; exit 1; \ + fi + if OS_WIN32_MINGW # Definitions for Windows distribution -- GitLab