]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - debian/ss-dev.postinst
Merge branch 'maint' into next
[thirdparty/e2fsprogs.git] / debian / ss-dev.postinst
CommitLineData
31ee367e
TT
1#!/bin/sh
2
3# Abort on error.
4set -e
5
6symlink_match()
7{
8 local SYMLINK="$1"
9 local SYMLINK_TARGET="$2"
10
11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
13}
14
15SYMLINK=/usr/share/doc/ss-dev
16SYMLINK_TARGET=libss2
17
18if [ "$1" = "configure" ] && [ -h "${SYMLINK}.dpkg-backup" ] &&
19 symlink_match "${SYMLINK}.dpkg-backup" "$SYMLINK_TARGET"
20then
21 rm -f "${SYMLINK}.dpkg-backup"
22fi
23
24#DEBHELPER#
25
26exit 0