File: installdirs.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,690 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/linbot/debian/dpkg.scripts/installdirs.in,v
#
# revision:
#   @(#) installdirs.in,v 1.3 1998/09/12 23:06:00 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# synopsis:
#   installdirs -p <DH_DOPACKAGES> -P <DH_TMPDIR>
#
# description:
#   Install package directories.
#
#   I've implemented argument parsing with the debhelper package.  The
#   sourced file, dh_lib, will define the two arguments.


# main:
  set -e


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

    . /usr/lib/debhelper/dh_lib


  echo "${0}: creating directories..."
    if   [ "@@pkg@@" = "${DH_DOPACKAGES}" ]
    then
      install -d -m 0755 ${DH_TMPDIR}

      install -d -m 0755 ${DH_TMPDIR}@@d_host_doc@@
      install -d -m 0755 ${DH_TMPDIR}@@d_host_docbase@@
      install -d -m 0755 ${DH_TMPDIR}@@d_host_etc@@

      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_bin@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_doc@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_docbase@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_etc@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_lib@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_lib_images@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_lib_images@@/buttons
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_lib_images@@/logos
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_lib_python@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_lib_python_sitepackages@@
      install -d -m 0755 ${DH_TMPDIR}@@d_pkg_man@@/man1
    else
      echo "${0}: unknown package..."
      exit 1
    fi


  exit 0