File: postinst

package info (click to toggle)
haskell-doc 19991028-1
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 1,672 kB
  • ctags: 620
  • sloc: haskell: 2,123; makefile: 158; sh: 31
file content (20 lines) | stat: -rw-r--r-- 428 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

set -e

package=haskell-doc

if command -v install-docs >/dev/null 2>&1; then
   install-docs -i /usr/share/doc-base/haskell98-lang
   install-docs -i /usr/share/doc-base/haskell98-lib
   install-docs -i /usr/share/doc-base/haskell98-tut
fi

# FHS transition
if [ -d /usr/doc ]; then
   if [ ! -e /usr/doc/$package -a -d /usr/share/doc/$package ]; then
      ln -s ../share/doc/$package /usr/doc/$package
   fi
fi