#!/usr/bin/make -f

PACKAGE_VERSION 	:= $(shell		\
		dpkg-parsechangelog 		\
	|	grep ^Version 			\
	|	awk '{print $$2}' 		\
	|	sed 's/-[[:digit:]]\+$$//'	\
)
include /usr/share/cdbs/1/rules/debhelper.mk

tarball:
	cd .. && tar \
		--exclude=debian \
		--exclude=.git \
		-czvf frogatto-data_$(PACKAGE_VERSION).orig.tar.gz \
		frogatto-data-$(PACKAGE_VERSION)
		

# Damn cdbs: the following is not working as I fail to see the target
# called after all the installs and before the dh_builddep. That would
# fix a lintian warning however.
#common-binary-indep::
#	cd debian/frogatto-data/usr/share/games/frogatto && find -type f -print0 |xargs -0 chmod a-x
