diff options
author | joey <joey> | 1999-08-17 04:12:54 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:12:54 +0000 |
commit | 938b66ee19e113785e6655b1c3e73e9003e6464c (patch) | |
tree | d06bd22faa3da8940bec71ba2e34e2028b6e7764 /dh_installdocs |
r1: Initial revision
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-x | dh_installdocs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dh_installdocs b/dh_installdocs new file mode 100755 index 00000000..9481ec4e --- /dev/null +++ b/dh_installdocs @@ -0,0 +1,26 @@ +#!/bin/sh -e +# +# Reads debian/docs, and looks at files listed on command line, installs all +# files listed there into /usr/doc/$PACKAGE +# Also installs the debian/copyright and debian/README.debian and debian/TODO + +PATH=debian:$PATH:/usr/lib/debhelper +source dh_lib + +if [ ! -d debian/tmp/usr/doc/$PACKAGE ]; then + doit "install -d debian/tmp/usr/doc/$PACKAGE" +fi + +if [ -e debian/docs ]; then + docs=`cat debian/docs | tr "\n" " "` +fi + +for file in $docs $@; do + doit "cp -a $file debian/tmp/usr/doc/$PACKAGE/" +done + +for file in copyright README.debian TODO ; do + if [ -f debian/$file ]; then + doit "install -m 644 -p debian/$file debian/tmp/usr/doc/$PACKAGE/" + fi +done |