diff options
author | José Manuel Santamaría Lema <panfaust@gmail.com> | 2012-09-10 10:42:38 +0200 |
---|---|---|
committer | José Manuel Santamaría Lema <panfaust@gmail.com> | 2012-09-10 10:42:38 +0200 |
commit | 55bc72f7047bba1db3663944842256d103978292 (patch) | |
tree | ffa98fa43abaa8da28e6046308ce1ecdb4d0de8f | |
parent | 81b496a595c82de969e4d492ba4d96e94d79ea3c (diff) | |
download | pkg-kde-tools-55bc72f7047bba1db3663944842256d103978292.tar.gz |
Add makefiles/1/list-missing.mk.
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | makefiles/1/list-missing.mk | 39 |
2 files changed, 47 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 27fb5ce..3f29d27 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +pkg-kde-tools (0.15.4~pre1) UNRELEASED; urgency=low + + * Add makefiles/1/list-missing.mk; this file is meant to provide the useful + list-missing and check-not-installed targets for kde-extras packages which + are using dh. + + -- José Manuel Santamaría Lema <panfaust@gmail.com> Mon, 10 Sep 2012 10:09:02 +0200 + pkg-kde-tools (0.15.3) unstable; urgency=low * Reupload without cruft. diff --git a/makefiles/1/list-missing.mk b/makefiles/1/list-missing.mk new file mode 100644 index 0000000..814d7ab --- /dev/null +++ b/makefiles/1/list-missing.mk @@ -0,0 +1,39 @@ +# Copyright © 2003 Colin Walters <walters@debian.org> +# Copyright © 2005-2011 Jonas Smedegaard <dr@jones.dk> +# Copyright © 2010-2011 Modestas Vainius <modax@debian.org> +# Description: Defines various random rules, including a list-missing rule +# +# 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 2, 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/>. + +list-missing: + @if test -d debian/tmp; then \ + (cd debian/tmp && find . -type f -o -type l | grep -v '/DEBIAN/' | sort) > debian/dhmk-install-list; \ + (for package in $(shell dh_listpackages); do \ + (cd debian/$$package && find . -type f -o -type l); \ + done; \ + test -e debian/not-installed && grep -v '^#' debian/not-installed; \ + ) | sort -u > debian/dhmk-package-list; \ + diff -u debian/dhmk-install-list debian/dhmk-package-list | sed '1,2d' | egrep '^-' || true; \ + else \ + echo "All files were installed into debian/$(shell dh_listpackages | head -n1)."; \ + fi + +check-not-installed: + @test -e debian/not-installed && \ + (for i in $(shell grep -v '^#' debian/not-installed); do \ + test -e debian/tmp/$$i || printf "File $$i not found in debian/tmp \n"; \ + done;) \ + || printf "ERROR: debian/not-installed not found.\n" + +.PHONY: list-missing check-not-installed |