#!/usr/bin/make -f

TBIRD_VERSION = $(shell apt-cache policy thunderbird 2>/dev/null | awk '/^  Candidate/ { print $$2 }' | fgrep -vx '(none)')
TBIRD_3_1 = $(shell dpkg --compare-versions '$(TBIRD_VERSION)' ge '3.1~' && echo y)
ICED_VERSION = $(shell apt-cache policy icedove 2>/dev/null | awk '/^  Can\
didate/ { print $$2 }' | fgrep -vx '(none)')
ICED_3_1 = $(shell dpkg --compare-versions '$(ICED_VERSION)' ge '3.1~' && ech\
o y)

ifneq ($(TBIRD_3_1),y)
ifneq ($(ICED_3_1),y)
binary-predeb/debathena-login-graphical::
	echo "debathena-thunderbird-config-recommends=debathena-thunderbird-config" >> debian/debathena-login-graphical.substvars
endif
endif


include /usr/share/cdbs/1/rules/debhelper.mk
