summaryrefslogtreecommitdiff
path: root/debian/gdb-source.postinst
blob: 866ae56d4e4458fdc762a6ea89068a1e4a5bfc3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

# Replace documentation directory with symlink
if [ -d /usr/share/doc/gdb-source ] && [ ! -L /usr/share/doc/gdb-source ]; then
    if rmdir /usr/share/doc/gdb-source 2>/dev/null; then
        ln -sf gdb /usr/share/doc/gdb-source
    fi
fi

#DEBHELPER#

exit 0