summaryrefslogtreecommitdiff
path: root/debian/dh_doclink
blob: 83726583001b1b79a04eaa0dc60fc3b2197f446d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh

pkg=`echo $1 | sed 's/^-p//'`
target=$2

[ -d debian/$pkg/usr/share/doc ] || mkdir -p debian/$pkg/usr/share/doc
if [ -d debian/$pkg/usr/share/doc/$p -a ! -h debian/$pkg/usr/share/doc/$p ]
then
    echo "WARNING: removing doc directory  $pkg"
    rm -rf debian/$pkg/usr/share/doc/$pkg
fi
ln -sf $target debian/$pkg/usr/share/doc/$pkg