~ubuntu-branches/ubuntu/trusty/checkpolicy/trusty

« back to all changes in this revision

Viewing changes to debian/common/pkgvars.mk

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2006-10-20 17:51:00 UTC
  • mfrom: (1.1.6 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20061020175100-hg5grqaote5ukt8c
Tags: 1.32-1
* New upstream release
  * Merged user and range_transition support for modules from Darrel
    Goeddel 
  * Updated version for release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
## Created On       : Sat Nov 15 02:56:30 2003
5
5
## Created On Node  : glaurung.green-gryphon.com
6
6
## Last Modified By : Manoj Srivastava
7
 
## Last Modified On : Tue Nov 18 01:06:00 2003
8
 
## Last Machine Used: glaurung.green-gryphon.com
9
 
## Update Count     : 5
 
7
## Last Modified On : Thu Jun 15 12:05:46 2006
 
8
## Last Machine Used: glaurung.internal.golden-gryphon.com
 
9
## Update Count     : 11
10
10
## Status           : Unknown, Use with caution!
11
11
## HISTORY          : 
12
 
## Description      : 
 
12
## Description      : This is what allows us toseparate out the top level
 
13
##                    targets, by determining which packages needto be built.
13
14
## 
14
15
## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331
15
16
## 
 
17
## 
 
18
## This program is free software; you can redistribute it and/or modify
 
19
## it under the terms of the GNU General Public License as published by
 
20
## the Free Software Foundation; either version 2 of the License, or
 
21
## (at your option) any later version.
 
22
##
 
23
## This program is distributed in the hope that it will be useful,
 
24
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
25
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
26
## GNU General Public License for more details.
 
27
##
 
28
## You should have received a copy of the GNU General Public License
 
29
## along with this program; if not, write to the Free Software
 
30
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
31
##
16
32
###############################################################################
17
33
 
18
34
# The maintainer information.
31
47
                                      egrep '^Version:' | cut -f 2 -d ' '))
32
48
DEB_ISNATIVE       := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
33
49
                       perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);'))
 
50
DEB_DISTRIBUTION  := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |        \
 
51
                                      egrep '^Distribution:' | cut -f 2 -d ' '))
34
52
 
35
53
DEB_PACKAGES := $(shell perl -e '                                                    \
36
54
                  $$/="";                                                            \
57
75
                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
58
76
                            die "duplicate package $$p" if $$seen{$$p};              \
59
77
                            $$seen{$$p}++;                                           \
60
 
                            $$a=$$1 if m/^Architecture:\s*(\S+)/m;                   \
61
 
                            next unless ($$a eq "$(DEB_HOST_ARCH)" || $$a eq "any"); \
62
 
                            print "$$p " if $$p;                                     \
 
78
                            $$c="";                                                  \
 
79
                            if (/^Architecture:\s*(.*?)\s*$$/sm) {                   \
 
80
                              @a = split /\s+/, $$1 };                               \
 
81
                              for my $$b (@a) {                                      \
 
82
                                next unless ($$b eq "$(DEB_HOST_ARCH)" ||            \
 
83
                                             $$b eq "any");                          \
 
84
                                $$c="$$p";                                           \
 
85
                            }                                                        \
 
86
                            print "$$c " if $$c;                                     \
63
87
                         }' debian/control )
64
88
 
65
89
# This package is what we get after removing the psuedo dirs we use in rules
66
90
package = $(notdir $@)
67
91
 
68
 
 
 
92
#Local variables:
 
93
#mode: makefile
 
94
#End: