#!/usr/bin/make -f

%:
	dh $@

override_dh_install:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	echo "===> Running shell script unit tests"
	pkgos-run-tests tests
	echo "===> Checking scripts"
	set -e ; for i in $(CURDIR)/usr/bin/ikvswitch-* ; do \
		echo "-> Checking $$i" ; \
		sh -n $$i ; \
	done
endif
	dh_install
