summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:12:54 +0000
committerjoey <joey>1999-08-17 04:12:54 +0000
commit938b66ee19e113785e6655b1c3e73e9003e6464c (patch)
treed06bd22faa3da8940bec71ba2e34e2028b6e7764 /dh_installdocs
r1: Initial revision
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs26
1 files changed, 26 insertions, 0 deletions
diff --git a/dh_installdocs b/dh_installdocs
new file mode 100755
index 0000000..9481ec4
--- /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