File: amphetamine.postinst

package info (click to toggle)
amphetamine 0.8.10-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,108 kB
  • sloc: cpp: 9,038; makefile: 106; sh: 31
file content (15 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (7)
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#