#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

execute_after_dh_fixperms:
	chmod +x debian/tsx/usr/share/nodejs/tsx/dist/cli.mjs

execute_after_dh_install:
	find debian/tsx/usr/share/nodejs/ -name '*.md' -delete

execute_before_dh_installman:
	chmod a+x debian/tsx/usr/bin/tsx && help2man --name='TSX Command line interface' --version-string=$(DEB_VERSION_UPSTREAM) --no-info ./debian/tsx/usr/bin/tsx > dist/tsx.1

