debian swirl logo

Back to the packages list docbook2x

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk


PACKAGE := docbook2x

DEB_CONFIGURE_EXTRA_FLAGS := --program-transform-name="s/^docbook2/docbook2x-/" --with-html-xsl

common-install-prehook-arch::
		sed "s/^INFO-DIR-SECTION Document Preparation/INFO-DIR-SECTION Text/" \
		    doc/docbook2X.info > debian/docbook2X.info
		sed "s/^INFO-DIR-SECTION Document Preparation/INFO-DIR-SECTION Text/" \
		    xslt/documentation/docbook2man-xslt.info > debian/docbook2man-xslt.info
		sed "s/^INFO-DIR-SECTION Document Preparation/INFO-DIR-SECTION Text/" \
		    xslt/documentation/docbook2texi-xslt.info > debian/docbook2texi-xslt.info

binary-install/docbook2x::
		dh_installinfo -pdocbook2x debian/docbook2X.info \
		                           debian/docbook2man-xslt.info \
		                           debian/docbook2texi-xslt.info
		dh_installchangelogs doc/changes.html
		dh_installxmlcatalogs

binary-post-install/docbook2x::
		mv $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/docbook2X \
		   $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/docbook2x
		sed -i -e 's/docbook2man/docbook2x\\-man/g' \
		   $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/docbook2x-man.1
		sed -i -e 's/docbook2texi/docbook2x\\-texi/g' \
		   $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/docbook2x-texi.1

clean::
		make -C debian/examples clean
		rm -f debian/docbook2X.info debian/docbook2man-xslt.info debian/docbook2texi-xslt.info

Builds:

docbook2x
converts docbook/xml documents into man pages and texinfo