Skip to content
Snippets Groups Projects
Commit e505630a authored by chrfranke's avatar chrfranke
Browse files

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
parent d8d66504
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment