#!/usr/bin/make -f
# debian/rules that uses debnest with dpatch
# Written by VA Linux System Japan, Inc.
#
# public domain

DEBNEST_BACKPORT_TARGET := woody

DEBNEST_BACKPORT_VERSION := $(shell dpkg-parsechangelog  | grep "^Version: " | cut -d' ' -f2 | sed -e 's/-[^-]*$$//')$(DEBNEST_BACKPORT_TARGET)$(shell dpkg-parsechangelog  | grep "^Version: " | cut -d' ' -f2 | sed -e 's/^.*-\([^-]*\)$$/\1/')
export DEBNEST_BACKPORT_VERSION

include debian/scripts/debnest/debnest.mk
include debian/scripts/dpatch.make

patch: prepatch
prepatch:: debnest-unpack
debnest-build: patch
debnest-clean: unpatch

