]> git.decadent.org.uk Git - ion3.git/commitdiff
Removed junk from docs.
authorBen Hutchings <ben@decadent.org.uk>
Sun, 25 Mar 2007 16:20:42 +0000 (16:20 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 12:35:22 +0000 (12:35 +0000)
debian/rules

index ecb721ec2a73ec1d148b94232a3dfc85812db71f..0138c101e2d8809cb6b8db8ab8cb89d84beb3fb7 100755 (executable)
@@ -9,8 +9,10 @@ include /usr/share/dpatch/dpatch.make
 
 PACKAGE := ion3
 PACKAGE_DEV := $(PACKAGE)-dev
+PACKAGE_DOC := $(PACKAGE)-doc
 INSTDIR := debian/$(PACKAGE)
 INSTDIR_DEV := debian/$(PACKAGE_DEV)
+INSTDIR_DOC := debian/$(PACKAGE_DOC)
 
 doc-orig:
        cp -R doc doc-orig
@@ -89,6 +91,12 @@ binary-indep: build-indep install-indep
 
        dh_installchangelogs -i
        dh_installdocs -i
+# remove empty images and TeX droppings
+       find $(INSTDIR_DOC)/usr/share/doc/$(PACKAGE_DOC) \
+               -name '*.png' -size 0 \
+               -o -name '*.aux' -o -name '*.idx' -o -name '*.log' \
+               -o -name '*.out' -o -name '*.pl' -o -name WARNINGS \
+               | xargs rm --
 
 #      dh_installexamples -i
 #      dh_install -i