File: postinst

package info (click to toggle)
doc-linux-it 2000.01-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,136 kB
  • ctags: 19
  • sloc: perl: 249; makefile: 50; sh: 42
file content (20 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

L=it

#DEBHELPER#

if [ "$1" = "configure" ]; then
  if [ -d /usr/doc -a ! -e /usr/doc/HOWTO/${L}-txt \
       -a -d /usr/share/doc/HOWTO/${L}-html ]; then
    ln -sf ../../share/doc/HOWTO/${L}-html /usr/doc/HOWTO/${L}-html
  fi
fi

if [ -f /usr/sbin/dhelp_parse ]; then
  echo -n "Registering documentation with dhelp..."
  /usr/sbin/dhelp_parse -a /usr/share/doc/HOWTO/${L}-html
  /usr/sbin/dhelp_parse -a /usr/share/doc/HOWTO/${L}-html/mini
  echo "done."
fi