/usr/src/gcc-4.9/debian/dh_doclink is in gcc-4.9-source 4.9.3-13ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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
|