File: doc-linux-it.postinst

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

if [ "$1" = "configure" ]; then
        if [ -d /usr/doc -a -h /usr/doc/doc-linux-it -a -d /usr/share/doc/doc-linux-it ]; then
                rm -f /usr/doc/doc-linux-it
        fi
        if [ -d /usr/doc -a -h /usr/doc/HOWTO -a -d /usr/share/doc/HOWTO ]; then
                rm -f /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