File: installcontrol.in

package info (click to toggle)
linbot 0.8-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 140 kB
  • ctags: 5
  • sloc: sh: 602; makefile: 126; perl: 7
file content (60 lines) | stat: -rw-r--r-- 1,290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
#
# source:
#   /var/cvs/projects/debian/dpkg.common/installcontrol.in,v
#
# revision:
#   @(#) installcontrol.in,v 1.2 1998/02/26 19:37:03 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# synopsis:
#   installcontrol -p <DH_DOPACKAGES> -P <DH_TMPDIR>
#
# description:
#   Install package files
#
#   This program is package independent and should work unmodified
#   with any package.


# main:
  set -e


  echo "${0}: parsing arguments..."
    PATH=debian:${PATH}:/usr/lib/debhelper

    . /usr/lib/debhelper/dh_lib


  echo "${0}: installing package control directory..."
    install -m 0755 -d ${DH_TMPDIR}/DEBIAN


  echo "${0}: installing package management nonexecutable files..."
    for file in conffiles
    do 
      f="debian/dpkg.src/${DH_DOPACKAGES}.${file}"
      if [ -r "${f}" ]
      then
        install -m 0644 ${f} ${DH_TMPDIR}/DEBIAN/${file}
      fi
    done


  echo "${0}: installing package management executable files..."
    for file in postinst preinst prerm postrm
    do 
      f="debian/dpkg.src/${DH_DOPACKAGES}.${file}"
      if [ -r "${f}" ]
      then
        install -m 0755 ${f} ${DH_TMPDIR}/DEBIAN/${file}
      fi
    done


  exit 0