summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules16
1 files changed, 9 insertions, 7 deletions
diff --git a/debian/rules b/debian/rules
index 9e63675..42fc61f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,13 +16,6 @@ override_dh_auto_clean:
rm -f xsane.spec include/config.h
rm -f po/*.gmo
-override_dh_auto_install:
- dh_auto_install
-
- # remove outdated/useless documentation
- rm -f debian/tmp/usr/share/sane/xsane/doc/sane-backends-doc.html
- rm -f debian/tmp/usr/share/sane/xsane/doc/sane-pnm-doc.html
-
override_dh_install-arch:
dh_install
@@ -36,3 +29,12 @@ override_dh_install-indep:
override_dh_installchangelogs:
dh_installchangelogs xsane.CHANGES
+
+override_dh_installdocs-indep:
+ dh_installdocs
+ mkdir debian/xsane-common/usr/share/doc/xsane-common/html
+ mv debian/xsane-common/usr/share/doc/xsane-common/*.html debian/xsane-common/usr/share/doc/xsane-common/html/
+ mv debian/xsane-common/usr/share/doc/xsane-common/*.jpg debian/xsane-common/usr/share/doc/xsane-common/html/
+ # remove outdated/useless documentation
+ rm -f debian/xsane-common/usr/share/doc/xsane-common/html/sane-backends-doc.html
+ rm -f debian/xsane-common/usr/share/doc/xsane-common/html/sane-pnm-doc.html