File: postinst

package info (click to toggle)
debianutils 1.16.2woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 156 kB
  • ctags: 36
  • sloc: ansic: 609; sh: 344; makefile: 50
file content (16 lines) | stat: -rwxr-xr-x 287 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh
set -e

if [ "$1" = configure ]; then
    if [ -d /usr/doc ]; then
	package=$(basename $0 .postinst)
	if [ ! -e /usr/doc/$package ]; then
	    (cd /usr/doc;
		if [ -d ../share/doc/$package ]; then
		    ln -s ../share/doc/$package $package ;
		fi
            )
	fi
    fi
fi