~mitya57/pkg-kde-tools/0.15.16ubuntu1

« back to all changes in this revision

Viewing changes to qt-kde-team/2/list-missing.mk

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-24 12:28:48 UTC
  • mfrom: (0.1.34 sid)
  • Revision ID: james.westby@ubuntu.com-20110524122848-rypmzvzs1x7fwvnq
Tags: 0.13.1
* Fix sections libdlrestrictions1 and libdlrestrictions-dev (libs and
  libdevel respectively).
* Bump Standards-Version to 3.9.2: no changes needed.
* Relicense DLRestrictions under less troublesome LGPLv2.1.
* While installing, preserve source permissions of files in cmake, makefiles,
  qt-kde-team and some other directories. This solves unexecutable scripts
  problem.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
5
#
 
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.
 
10
#
 
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.
 
15
#
 
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/>.
 
18
 
 
19
ifdef dqk_dir
 
20
 
 
21
list-missing:
 
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); \
 
26
           done; \
 
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; \
 
30
        else \
 
31
          echo "All files were installed into debian/$(shell dh_listpackages | head -n1)."; \
 
32
        fi
 
33
 
 
34
post_clean:
 
35
        rm -f debian/dhmk-install-list debian/dhmk-package-list
 
36
 
 
37
.PHONY: list-missing
 
38
 
 
39
endif