Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2014 01:30:33 +0000 (UTC)
From:      Julio Merino <jmmv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r263787 - user/jmmv/autotest/node
Message-ID:  <201403270130.s2R1UXH9099171@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmmv
Date: Thu Mar 27 01:30:33 2014
New Revision: 263787
URL: http://svnweb.freebsd.org/changeset/base/263787

Log:
  Fix shtk presence validation by actually aborting the build when missing.

Modified:
  user/jmmv/autotest/node/Makefile

Modified: user/jmmv/autotest/node/Makefile
==============================================================================
--- user/jmmv/autotest/node/Makefile	Thu Mar 27 01:27:57 2014	(r263786)
+++ user/jmmv/autotest/node/Makefile	Thu Mar 27 01:30:33 2014	(r263787)
@@ -15,8 +15,10 @@ SCRIPTS= iterate loop setup
 all: check-shtk .WAIT ${SCRIPTS} rc.d/autotest_node
 
 check-shtk: .PHONY
-	@"${SHTK}" version >/dev/null 2>&1 \
-	    || echo "shtk not available; run 'pkg install shtk'"
+	@if ! "${SHTK}" version >/dev/null 2>&1; then \
+	    echo "shtk not available; run 'pkg install shtk'"; \
+	    false; \
+	fi
 
 .for script in ${SCRIPTS}
 ${script}: ${script}.sh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403270130.s2R1UXH9099171>