File: dh_doclink

package info (click to toggle)
gcc-12 12.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 91,148 kB
  • sloc: makefile: 2,683; sh: 1,138; python: 1,107; awk: 23; cpp: 14
file content (12 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download | duplicates (96)
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