Index: mttroot/mtt/Makefile ================================================================== --- mttroot/mtt/Makefile +++ mttroot/mtt/Makefile @@ -65,10 +65,11 @@ @install cc/parse_m2cc.exe $(INSTDIR)/bin/trans install-doc: build-doc clean-doc.sh @install -d $(DOCDIR) $(INFODIR) @cd doc ; DOCPATH=$(DOCDIR) INFOPATH=$(INFODIR) make -s install-doc + @install doc/mtt.info* $(INFODIR) .PHONY: FORCE clean.sh: FORCE @echo '#! /bin/sh' >>clean.sh ADDED mttroot/mtt/debian/postinst Index: mttroot/mtt/debian/postinst ================================================================== --- /dev/null +++ mttroot/mtt/debian/postinst @@ -0,0 +1,51 @@ +#! /bin/sh +# postinst script for mtt +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + install-info --menuentry=MTT \ + --description="Model Transformation Tools" \ + --section "[Mm]ath" Mathematics \ + /usr/share/info/mtt.info.gz + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + ADDED mttroot/mtt/debian/prerm Index: mttroot/mtt/debian/prerm ================================================================== --- /dev/null +++ mttroot/mtt/debian/prerm @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for mtt +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + install-info --quiet --remove /usr/share/info/mtt.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +