1
# Copyright © 2003 Colin Walters <walters@debian.org>
2
# Copyright © 2005-2011 Jonas Smedegaard <dr@jones.dk>
3
# Copyright © 2010-2011 Modestas Vainius <modax@debian.org>
4
# Description: Defines various random rules, including a list-missing rule
6
# This program is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU General Public License as
8
# published by the Free Software Foundation; either version 2, or (at
9
# your option) any later version.
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
@if test -d debian/tmp; then \
23
(cd debian/tmp && find . -type f -o -type l | grep -v '/DEBIAN/' | sort) > debian/dhmk-install-list; \
24
(for package in $(shell dh_listpackages); do \
25
(cd debian/$$package && find . -type f -o -type l); \
27
test -e debian/not-installed && grep -v '^#' debian/not-installed; \
28
) | sort -u > debian/dhmk-package-list; \
29
diff -u debian/dhmk-install-list debian/dhmk-package-list | sed '1,2d' | egrep '^-' || true; \
31
echo "All files were installed into debian/$(shell dh_listpackages | head -n1)."; \
35
rm -f debian/dhmk-install-list debian/dhmk-package-list