File: doc-linux-it.postinst

package info (click to toggle)
doc-linux-it 2003.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,592 kB
  • ctags: 10
  • sloc: perl: 87; makefile: 61; sh: 61
file content (25 lines) | stat: -rw-r--r-- 685 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
#!/bin/sh -e

if [ "$1" = "configure" ]; then
  if [ -d /usr/doc -a ! -e /usr/doc/doc-linux-it \
       -a -d /usr/share/doc/doc-linux-it ]; then
    ln -sf ../share/doc/doc-linux-it /usr/doc/doc-linux-it
  fi
  if [ -d /usr/doc -a ! -e /usr/doc/HOWTO -a -d /usr/share/doc/HOWTO ]; then
    ln -sf ../share/doc/HOWTO /usr/doc/HOWTO
  fi
fi

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

# At the moment, dh_dhelp is too broken to do this properly.
if [ "$1" = configure ] && [ -x /usr/sbin/dhelp_parse ]; then
        /usr/sbin/dhelp_parse -a /usr/share/doc/HOWTO/it-html
fi


#DEBHELPER#

exit 0