File: dh_doclink

package info (click to toggle)
gcc-4.8 4.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 587,180 kB
  • ctags: 425
  • sloc: makefile: 65,711; sh: 1,248; perl: 165; awk: 23; cpp: 14
file content (12 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download | duplicates (74)
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