Index: mttroot/mtt/bin/mtt_cvs2deb ================================================================== --- mttroot/mtt/bin/mtt_cvs2deb +++ mttroot/mtt/bin/mtt_cvs2deb @@ -100,10 +100,13 @@ shift done topdir=`pwd` +## Main MTT +echo "Packaging mtt ..." + # create working directory tmpdir=`mktemp -d mtt_cvs2deb.tmp.XXXXXXXXXX` if [ ! -d ${tmpdir} ]; then error "cannot create temporary directory" fi @@ -116,11 +119,13 @@ cp -a ${sources} . fi # generate tarball of sources cd mttroot -tar -czf mtt-${version}.tar.gz mtt/ +tar -cf mtt-${version}.tar mtt/ +tar --file mtt-${version}.tar --delete mtt/lib/examples +gzip mtt-${version}.tar cd mtt # create .deb echo "$0: information: a \"Could not find diffs\" error in the next few lines is probably harmless" uupdate -u mtt-${version}.tar.gz @@ -130,13 +135,55 @@ dpkg-buildpackage -rfakeroot -k${DEBEMAIL} cd .. # clean up cp mtt*.deb ${topdir}/ +cd ${topdir} +if [ "${keeptmp}" = "remove" ]; then + rm -r ${tmpdir} +else + echo Keeping temporary directory: ${tmpdir} +fi + + +## Examples +echo "Packaging mtt-examples ..." + +# create working directory +tmpdir=`mktemp -d mtt_cvs2deb.tmp.XXXXXXXXXX` +if [ ! -d ${tmpdir} ]; then + error "cannot create temporary directory" +fi + +# copy sources to working directory +cd ${tmpdir} +if [ "${sources}" = "${default_sources}" ]; then + cvs -z3 -d:pserver:anonymous@cvs.mtt.sf.net:/cvsroot/mtt co mttroot +else + cp -a ${sources} . +fi + +# generate tarball of sources +cd mttroot/mtt/lib +tar -cf mtt-examples-${version}.tar examples/ +gzip mtt-examples-${version}.tar +cd examples + +# create .deb +echo "$0: information: a \"Could not find diffs\" error in the next few lines is probably harmless" +uupdate -u mtt-examples-${version}.tar.gz +cd ../mtt-examples-${version}/debian +dch -v ${version} ${logtext} +cd .. +dpkg-buildpackage -rfakeroot -k${DEBEMAIL} +cd .. + +# clean up +cp mtt-examples*.deb ${topdir}/ cd ${topdir} if [ "${keeptmp}" = "remove" ]; then rm -r ${tmpdir} else echo Keeping temporary directory: ${tmpdir} fi exit 0 Index: mttroot/mtt/debian/control ================================================================== --- mttroot/mtt/debian/control +++ mttroot/mtt/debian/control @@ -6,11 +6,11 @@ Standards-Version: 3.5.2 Package: mtt Architecture: all Depends: gawk, octave, units, xfig -Recommends: blas-dev, fftw-dev, c-compiler, g++, gnuplot, info-browser, lapack-dev, latex2html, libkpathsea-dev, libncurses5-dev, libreadline4-dev, pdf-viewer, postscript-viewer, octave-headers, octave-info, p2c, transfig, xterm, www-browser, wish +Recommends: mtt-examples, blas-dev, fftw-dev, c-compiler, g++, gnuplot, info-browser, lapack-dev, latex2html, libkpathsea-dev, libncurses5-dev, libreadline4-dev, pdf-viewer, postscript-viewer, octave-headers, octave-info, p2c, transfig, xterm, www-browser, wish Suggests: scigraphica, zip Description: Model Transformation Tools. A set of tools for modelling dynamic physical systems using the bond-graph methodology and transforming these models into representations suitable for analysis, control and simulation. These tools use, and generate m files for, GNU Octave. . The MTT homepage is located at http://mtt.sourceforge.net. An on-line manual is available at http://mtt.sourceforge.net/doc. Index: mttroot/mtt/debian/copyright ================================================================== --- mttroot/mtt/debian/copyright +++ mttroot/mtt/debian/copyright @@ -5,11 +5,11 @@ Upstream Author(s): Peter Gawthrop Copyright: -mtt is copyright (c) 1989-2003 by Peter J. Gawthrop. +mtt is copyright (c) 1989-2004 by Peter J. Gawthrop. You are free to distribute this software under the terms of the GNU General Public License (GPL). On Debian systems, the complete text of the GNU General Public License ADDED mttroot/mtt/lib/examples/Makefile Index: mttroot/mtt/lib/examples/Makefile ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/Makefile @@ -0,0 +1,48 @@ +#! /usr/bin/make -f + +# DESTDIR prefix required by Debian build process +INSTDIR=$(DESTDIR)/usr/share/mtt/lib/examples + +configure: configure-stamp +configure-stamp: + @touch configure-stamp + +build: configure build-stamp +build-stamp: + @touch build-stamp + +clean: + @touch clean.sh + @-chmod a+x clean.sh + @./clean.sh + @rm -f clean.sh + +distclean: clean + +install: build clean.sh + @install -d $(INSTDIR) + @cp -a ABG\ + AlgebraicLoops\ + Anaesthesia\ + Chemical\ + Components\ + Control\ + Electrical\ + Electromechanical\ + GasDynamics\ + Hybrid\ + Identification\ + Inverse\ + Mechanical\ + Sensitivity\ + Simulation\ + Thermal\ + $(INSTDIR) + +.PHONY: FORCE + +clean.sh: FORCE + @echo '#! /bin/sh' >>clean.sh + @echo '# This file is auto-generated - do not edit' >>clean.sh + @echo "rm -f $(INSTDIR)/examples" >>clean.sh + ADDED mttroot/mtt/lib/examples/debian/README.Debian Index: mttroot/mtt/lib/examples/debian/README.Debian ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/README.Debian @@ -0,0 +1,6 @@ +mtt-examples for Debian +----------------------- + +Library of examples for MTT (Model Transformation Tools). + + -- Geraint Paul Bevan , Wed, 18 Feb 2004 22:47:08 +0000 ADDED mttroot/mtt/lib/examples/debian/changelog Index: mttroot/mtt/lib/examples/debian/changelog ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/changelog @@ -0,0 +1,6 @@ +mtt-examples (5.0-1) unstable; urgency=low + + * Initial Release. + + -- Geraint Paul Bevan Wed, 18 Feb 2004 22:47:08 +0000 + ADDED mttroot/mtt/lib/examples/debian/compat Index: mttroot/mtt/lib/examples/debian/compat ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/compat @@ -0,0 +1,1 @@ +4 ADDED mttroot/mtt/lib/examples/debian/conffiles.ex Index: mttroot/mtt/lib/examples/debian/conffiles.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/conffiles.ex @@ -0,0 +1,7 @@ +# +# If you want to use this conffile, remove all comments and put files that +# you want dpkg to process here using their absolute pathnames. +# See the policy manual +# +# for example: +# /etc/mtt-examples/mtt-examples.conf ADDED mttroot/mtt/lib/examples/debian/control Index: mttroot/mtt/lib/examples/debian/control ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/control @@ -0,0 +1,17 @@ +Source: mtt-examples +Section: contrib/math +Priority: optional +Maintainer: Geraint Paul Bevan +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.0 + +Package: mtt-examples +Architecture: any +Depends: mtt +Description: Library of examples for Model Transformation Tools + A library of examples for MTT, a set of tools for modelling dynamic physical systems using the bond-graph methodology and transforming these models into representations suitable for analysis, control and simulation. These tools use, and generate m files for, GNU Octave. + . + The MTT homepage is located at http://mtt.sourceforge.net. An on-line manual is available at http://mtt.sourceforge.net/doc. + . + mtt requires the non-free symbolic algebra tool Reduce to be installed. Details of Reduce can be found at http://www.uni-koeln.de/REDUCE/ + . ADDED mttroot/mtt/lib/examples/debian/copyright Index: mttroot/mtt/lib/examples/debian/copyright ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Geraint Paul Bevan on +Wed, 18 Feb 2004 22:47:08 +0000. + +It was downloaded from http://sourceforge.net/projects/mtt + +Upstream Author(s): Peter Gawthrop + +Copyright: + +mtt-examples is copyright (c) 1989-2004 by Peter J. Gawthrop. + +You are free to distribute this software under the terms of the +GNU General Public License (GPL). + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL. ADDED mttroot/mtt/lib/examples/debian/cron.d.ex Index: mttroot/mtt/lib/examples/debian/cron.d.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the mtt-examples package +# +0 4 * * * root mtt-examples_maintenance ADDED mttroot/mtt/lib/examples/debian/dirs Index: mttroot/mtt/lib/examples/debian/dirs ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/dirs @@ -0,0 +1,2 @@ +usr/bin + ADDED mttroot/mtt/lib/examples/debian/docs Index: mttroot/mtt/lib/examples/debian/docs ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/docs ADDED mttroot/mtt/lib/examples/debian/emacsen-install.ex Index: mttroot/mtt/lib/examples/debian/emacsen-install.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/emacsen-install.ex @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/mtt-examples + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=mtt-examples + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 ADDED mttroot/mtt/lib/examples/debian/emacsen-remove.ex Index: mttroot/mtt/lib/examples/debian/emacsen-remove.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/emacsen-remove.ex @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/mtt-examples + +FLAVOR=$1 +PACKAGE=mtt-examples + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/mtt-examples.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi ADDED mttroot/mtt/lib/examples/debian/emacsen-startup.ex Index: mttroot/mtt/lib/examples/debian/emacsen-startup.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/emacsen-startup.ex @@ -0,0 +1,19 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian mtt-examples package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The mtt-examples package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/mtt-examples"))) + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)))) + ADDED mttroot/mtt/lib/examples/debian/init.d.ex Index: mttroot/mtt/lib/examples/debian/init.d.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/init.d.ex @@ -0,0 +1,74 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/mtt-examples +NAME=mtt-examples +DESC=mtt-examples + +test -x $DAEMON || exit 0 + +# Include mtt-examples defaults if available +if [ -f /etc/default/mtt-examples ] ; then + . /etc/default/mtt-examples +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 ADDED mttroot/mtt/lib/examples/debian/manpage.1.ex Index: mttroot/mtt/lib/examples/debian/manpage.1.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/manpage.1.ex @@ -0,0 +1,60 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH MTT-EXAMPLES SECTION "February 18, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +mtt-examples \- program to do something +.SH SYNOPSIS +.B mtt-examples +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B mtt-examples +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +Instead, it has documentation in the GNU Info format; see below. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBmtt-examples\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Geraint Paul Bevan , +for the Debian project (but may be used by others). ADDED mttroot/mtt/lib/examples/debian/manpage.sgml.ex Index: mttroot/mtt/lib/examples/debian/manpage.sgml.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/manpage.sgml.ex @@ -0,0 +1,156 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + February 18, 2004"> + + SECTION"> + geraint@users.sourceforge.net"> + + MTT-EXAMPLES"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + ADDED mttroot/mtt/lib/examples/debian/manpage.xml.ex Index: mttroot/mtt/lib/examples/debian/manpage.xml.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/manpage.xml.ex @@ -0,0 +1,148 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A +typical entry in a Makefile or Makefile.am is: + +DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ +manpages/docbook.xsl +XP=xsltproc -''-nonet + +manpage.1: manpage.dbk + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The +XSL files are in docbook-xsl. Please remember that if you +create the nroff version in one of the debian/rules file +targets (such as build), you will need to include xsltproc +and docbook-xsl in your Build-Depends control field. + +--> + + + FIRSTNAME"> + SURNAME"> + + February 18, 2004"> + + SECTION"> + geraint@users.sourceforge.net"> + + MTT-EXAMPLES"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ ADDED mttroot/mtt/lib/examples/debian/menu.ex Index: mttroot/mtt/lib/examples/debian/menu.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/menu.ex @@ -0,0 +1,2 @@ +?package(mtt-examples):needs=X11|text|vc|wm section=Apps/see-menu-manual\ + title="mtt-examples" command="/usr/bin/mtt-examples" ADDED mttroot/mtt/lib/examples/debian/mtt-examples-default.ex Index: mttroot/mtt/lib/examples/debian/mtt-examples-default.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/mtt-examples-default.ex @@ -0,0 +1,10 @@ +# Defaults for mtt-examples initscript +# sourced by /etc/init.d/mtt-examples +# installed at /etc/default/mtt-examples by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="" ADDED mttroot/mtt/lib/examples/debian/mtt-examples.doc-base.EX Index: mttroot/mtt/lib/examples/debian/mtt-examples.doc-base.EX ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/mtt-examples.doc-base.EX @@ -0,0 +1,22 @@ +Document: mtt-examples +Title: Debian mtt-examples Manual +Author: +Abstract: This manual describes what mtt-examples is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/mtt-examples/mtt-examples.sgml.gz + +Format: postscript +Files: /usr/share/doc/mtt-examples/mtt-examples.ps.gz + +Format: text +Files: /usr/share/doc/mtt-examples/mtt-examples.text.gz + +Format: HTML +Index: /usr/share/doc/mtt-examples/html/index.html +Files: /usr/share/doc/mtt-examples/html/*.html + + ADDED mttroot/mtt/lib/examples/debian/postinst.ex Index: mttroot/mtt/lib/examples/debian/postinst.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/postinst.ex @@ -0,0 +1,42 @@ +#! /bin/sh +# postinst script for mtt-examples +# +# 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 +# + +case "$1" in + configure) + + ;; + + 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/lib/examples/debian/postrm.ex Index: mttroot/mtt/lib/examples/debian/postrm.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/postrm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for mtt-examples +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm 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/lib/examples/debian/preinst.ex Index: mttroot/mtt/lib/examples/debian/preinst.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/preinst.ex @@ -0,0 +1,44 @@ +#! /bin/sh +# preinst script for mtt-examples +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/mtt-examples.pid \ +# --exec /usr/sbin/mtt-examples 2>/dev/null || true +# fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst 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/lib/examples/debian/prerm.ex Index: mttroot/mtt/lib/examples/debian/prerm.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/prerm.ex @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for mtt-examples +# +# 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/info/mtt-examples.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 + + ADDED mttroot/mtt/lib/examples/debian/rules Index: mttroot/mtt/lib/examples/debian/rules ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/mtt-examples.sgml > mtt-examples.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/mtt-examples. + $(MAKE) install DESTDIR=$(CURDIR)/debian/mtt-examples + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs +# dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure ADDED mttroot/mtt/lib/examples/debian/watch.ex Index: mttroot/mtt/lib/examples/debian/watch.ex ================================================================== --- /dev/null +++ mttroot/mtt/lib/examples/debian/watch.ex @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +sunsite.unc.edu /pub/Linux/Incoming mtt-examples-(.*)\.tar\.gz debian uupdate