#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install

%:
	dh $@ --buildsystem=ruby --with ruby

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR) -iname "*.erb" -and -executable -exec chmod -x {} +

override_dh_installman:
	mkdir debian/tmp
	rst2man debian/manpage.rst debian/tmp/puppet-strings.1
	dh_installman debian/tmp/puppet-strings.1