~ubuntu-branches/ubuntu/natty/checkpolicy/natty

« back to all changes in this revision

Viewing changes to debian/common/install_cmds.mk

  • Committer: Bazaar Package Importer
  • Author(s): Russell Coker
  • Date: 2008-07-12 00:16:59 UTC
  • mfrom: (1.1.10 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080712001659-vh8tlttve9vi3cc8
Tags: 2.0.16-1
* Non-maintainer upload.
* New upstream version needed for latest policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
######################### -*- Mode: Makefile-Gmake -*- ########################
 
2
## install_cmds.mk ---
 
3
## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com )
 
4
## Created On       : Fri Jun 16 14:40:20 2006
 
5
## Created On Node  : glaurung.internal.golden-gryphon.com
 
6
## Last Modified By : Manoj Srivastava
 
7
## Last Modified On : Wed Sep  6 11:43:05 2006
 
8
## Last Machine Used: glaurung.internal.golden-gryphon.com
 
9
## Update Count     : 9
 
10
## Status           : Unknown, Use with caution!
 
11
## HISTORY          :
 
12
## Description      :
 
13
##
 
14
## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071
 
15
##
 
16
## This program is free software; you can redistribute it and/or modify
 
17
## it under the terms of the GNU General Public License as published by
 
18
## the Free Software Foundation; either version 2 of the License, or
 
19
## (at your option) any later version.
 
20
##
 
21
## This program is distributed in the hope that it will be useful,
 
22
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
23
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
24
## GNU General Public License for more details.
 
25
##
 
26
## You should have received a copy of the GNU General Public License
 
27
## along with this program; if not, write to the Free Software
 
28
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
29
##
 
30
###############################################################################
 
31
 
 
32
# install commands
 
33
install_file   = install -p    -o root -g root -m 644
 
34
install_script = install -p    -o root -g root -m 755
 
35
install_program= install -p    -o root -g root -m 755
 
36
make_directory = install -p -d -o root -g root -m 755
 
37
 
 
38
define create_md5sum
 
39
    create_md5sums_fn () {                                         \
 
40
        cd $$1 ;                                                   \
 
41
       find . -type f                                              \
 
42
              ! -regex './DEBIAN/.*'                               \
 
43
              ! -regex './etc/.*'     $(EXTRA_MD5SUM_EXCLUDE)      \
 
44
              -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \
 
45
       if [ -z "DEBIAN/md5sums" ] ; then                           \
 
46
           rm -f "DEBIAN/md5sums" ;                                \
 
47
       fi ;                                                        \
 
48
    } ;                                                            \
 
49
    create_md5sums_fn 
 
50
endef
 
51
 
 
52
#Local variables:
 
53
#mode: makefile
 
54
#End: