File: dh_doclink

package info (click to toggle)
gcj-4.6 4.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,188 kB
  • sloc: makefile: 1,891; sh: 1,120; perl: 165; awk: 23; cpp: 14
file content (12 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (106)
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