File: postinst

package info (click to toggle)
amphetamine 0.8.10-13
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 604 kB
  • ctags: 1,601
  • sloc: cpp: 9,020; makefile: 145; sh: 31
file content (15 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

set -e

DOCDIR="/usr/share/doc/amphetamine"

if [ -d "$DOCDIR" -a ! -L "$DOCDIR" ]; then
  rmdir --ignore-fail-on-non-empty "$DOCDIR"
  if [ ! -d "$DOCDIR" ]; then
    ln -s amphetamine-data "$DOCDIR"
  fi
fi

#DEBHELPER#