/usr/src/gcc-8/debian/dh_doclink is in gcc-8-source 8-20180414-1ubuntu2.
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
|