#!/usr/bin/make -f
# Copyright © 2016 Jonas Smedegaard <dr@jones.dk>
# Description: Main Debian packaging script for imip-agent
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Check for changed copyright/license statements in source
# * Use: debian/rules2 debian/stamp-copyright-check
# FIXME: incompatible with recent debhelper
#-include /usr/share/cdbs/1/rules/utils.mk

%:
	dh $@ --with python2

override_dh_auto_build:
	tools/i18n_format.sh

override_dh_auto_test:
# FIXME: test_resource_invitation_group.sh loops
#	./test_all.sh

override_dh_link:
	find debian/python-imiptools/usr -type f -name config.py \
	  -exec ln -sf /etc/imip-agent/config.py '{}' ';'
	dh_link
