#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install
export DH_RUBY_GEM_INSTALL_EXCLUDE = bin/macos/* bin/windows/* bin/selenium-manager-THIRD-PARTY-NOTICES.txt

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

override_dh_install:
	dh_install
	rm -rvf debian/ruby-selenium-webdriver/usr/bin/
	chmod a-x debian/ruby-selenium-webdriver/usr/share/rubygems-integration/all/gems/selenium-webdriver-*/bin/selenium-manager.cdx.json
