File: postinst

package info (click to toggle)
hugs-doc 98.200002-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 256 kB
  • ctags: 83
  • sloc: makefile: 36; sh: 18
file content (16 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

package=hugs-doc

if command -v install-docs >/dev/null 2>&1; then
   install-docs -i /usr/share/doc-base/hugs
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