]> matita.cs.unibo.it Git - helm.git/commitdiff
added manpages
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 15 Nov 2007 13:22:13 +0000 (13:22 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 15 Nov 2007 13:22:13 +0000 (13:22 +0000)
pkg-matita/trunk/debian/rules

index c97d080d9343b1c80944e5b4ae6cfe3d11416b1c..24f32a6a5a1a7afe88a1a1fbeb6b65712f946545 100755 (executable)
@@ -14,6 +14,31 @@ DEB_DH_INSTALL_SOURCEDIR := $(DEB_DESTDIR)
 DEB_MAKE_INSTALL_TARGET :=
 common-install-arch::
        make install-arch DESTDIR=$(DEB_DESTDIR)
+       mkdir -p $(DEB_DESTDIR)/usr/share/man/man1/
+       help2man --name="Matita interative theorem prover" -N \
+               $(DEB_DESTDIR)/usr/bin/matita \
+               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matita.1.gz
+       help2man --name="Matita interative theorem prover - batch compiler" -N \
+               $(DEB_DESTDIR)/usr/bin/matitac \
+               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matitac.1.gz
+       help2man --name="Matita interative theorem prover - build tool" -N \
+               $(DEB_DESTDIR)/usr/bin/matitamake \
+               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matitamake.1.gz
+       help2man --name="Matita interative theorem prover - cleanup tool" -N \
+               $(DEB_DESTDIR)/usr/bin/matitaclean \
+               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matitaclean.1.gz
+       help2man --name="Matita interative theorem prover - CIC browser" -N \
+               $(DEB_DESTDIR)/usr/bin/cicbrowser \
+               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/cicbrowser.1.gz
+       help2man --name="Matita interative theorem prover - dependency analyzer" -N \
+               $(DEB_DESTDIR)/usr/bin/matitadep \
+               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matitadep.1.gz
+       if [ -e  $(DEB_DESTDIR)/usr/bin/matita.opt ]; then\
+               for P in  $(DEB_DESTDIR)/usr/bin/*.opt; do\
+                       ln -s /usr/share/man/man1/$(basename $$P .opt).1.gz \
+                       $(DEB_DESTDIR)/usr/share/man/man1/$(basename $$P).1.gz\
+               done\
+       fi
 common-install-indep::
        make install-indep DESTDIR=$(DEB_DESTDIR)
        find $(DEB_DESTDIR) -name \*.xml.types.gz -exec rm {} \;