File: wgerman.postinst

package info (click to toggle)
hkgerman 2-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,332 kB
  • ctags: 6
  • sloc: makefile: 102; sh: 78; sed: 15
file content (17 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

set -e

if [ "$1" = "configure" ]
then
  update-alternatives --install /usr/share/dict/words dictionary \
                                /usr/share/dict/german 30;
fi

if [ "$1" = "configure" ]
then
  if [ -d /usr/doc -a ! -e /usr/doc/wgerman -a -d /usr/share/doc/wgerman ]
  then
    ln -sf ../share/doc/wgerman /usr/doc/wgerman
  fi
fi