File: postinst-run

package info (click to toggle)
bzip2-old 0.9.5d-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,640 kB
  • ctags: 660
  • sloc: ansic: 4,996; makefile: 177; sh: 56
file content (22 lines) | stat: -rw-r--r-- 460 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
#!/bin/sh
set -e

# Doc base
if [ "$1" = "configure" ] ; then
  ldconfig
  if command -v install-docs >/dev/null 2>&1; then
    install-docs -i /usr/share/doc-base/bzip2
   fi
fi

# Info
install-info --quiet --section "General Commands" "General Commands" \
    /usr/share/info/bzip2.info

# FHS
pkg=bzip2
if [ "$1" = "configure" ]; then
 if [ -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg ]; then
  ln -sf ../share/doc/$pkg /usr/doc/$pkg
 fi
fi