ptex-jtex (1.7+1-11) debian-dir only changes

Summary

 debian/20ptexjtex        |    2 
 debian/README.Debian     |   28 ++++++++
 debian/ajlatex.1         |   48 ++++++++++++++
 debian/ajlatex.ini       |    3 
 debian/ajtex.1           |   48 ++++++++++++++
 debian/ajtex.ini         |    3 
 debian/changelog         |  155 +++++++++++++++++++++++++++++++++++++++++++++++
 debian/compat            |    1 
 debian/control           |   19 +++++
 debian/copyright         |   39 +++++++++++
 debian/copyright.ja      |   21 ++++++
 debian/dirs              |    6 +
 debian/fmtutil-ajtex.cnf |   32 +++++++++
 debian/forDebian.patch   |   10 +++
 debian/instman.sh        |    8 ++
 debian/postinst          |   44 +++++++++++++
 debian/postrm            |   35 ++++++++++
 debian/preinst           |   41 ++++++++++++
 debian/prerm             |   29 ++++++++
 debian/ptexjtexconfig    |   47 ++++++++++++++
 debian/ptexjtexconfig.1  |   46 +++++++++++++
 debian/rules             |  105 +++++++++++++++++++++++++++++++
 22 files changed, 770 insertions(+)

    
download this patch

Patch contents

--- ptex-jtex-1.7+1.orig/debian/20ptexjtex
+++ ptex-jtex-1.7+1/debian/20ptexjtex
@@ -0,0 +1,2 @@
+TEXINPUTS.ajlatex	= .;$TEXMF/{ptex,tex}/{ajtex,latex209,generic,}//
+TEXINPUTS.ajtex = .;$TEXMF/{ptex,tex}/{ajtex,latex209,generic,}//
--- ptex-jtex-1.7+1.orig/debian/README.Debian
+++ ptex-jtex-1.7+1/debian/README.Debian
@@ -0,0 +1,28 @@
+ptex-jtex for Debian
+----------------------
+
+ASCII jTeX is Japanese TeX, designed by ASCII corporation.
+
+In this package, 'jtex' and 'jlatex' are renamed as 'ajtex' and 'ajlatex',
+respectively because the present ASCII japanese TeX uses 'ptex' and 'platex' 
+generally and also because 'jtex' and 'jlatex' are commonly used for NTT 
+japanese TeX.
+ 
+And these programs are compiled with a recent ptex, which is included in 
+ptex-bin package.  Note ajlatex is of latex209 version.
+
+Technical Issue:
+- forDebian.patch	to remove unnecessary temporary files (*.sjis).
+
+- instman.sh	do not use dh_installmanpages, this will install unnecessary 
+	man pages!!! (obsolete; dh_installman worked fine now!)
+
+TODO:
+- place plain and latex macros in separate directories?
+- amsajtex is necessary?
+
+Obsolete: these are not supported nor necessary now.
+If ajtex/ajlatex would not work, please try "ptexjtexconfig addpath".
+Before removing this package, you should do "ptexjtexconfig rempath".
+
+ -- Atsuhito KOHDA <kohda@debian.org>, Tue,  7 Nov 2000 15:07:50 +0900
--- ptex-jtex-1.7+1.orig/debian/ajlatex.1
+++ ptex-jtex-1.7+1/debian/ajlatex.1
@@ -0,0 +1,48 @@
+.\"                                      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 AJLATEX 1 "Nov.  3, 2000"
+.\" 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 <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+ajlatex \- latex command with japanese support of ASCII version
+.SH SYNOPSIS
+.B ajlatex
+.RI [ options ] "TeX file"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B ajlatex
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBajlatex\fP is latex command (of 209 version) that supports japanese.
+.SH OPTIONS
+ajlatex admits almost same options as those of latex so, for a complete
+description, please see manual page of latex.
+.TP
+.B \-help
+Show summary of options.
+.TP
+.B \-version
+Show version of program.
+.SH SEE ALSO
+.BR latex (1),
+.br
+.SH AUTHOR
+This manual page was written by Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>,
+for the Debian GNU/Linux system (but may be used by others).
--- ptex-jtex-1.7+1.orig/debian/ajlatex.ini
+++ ptex-jtex-1.7+1/debian/ajlatex.ini
@@ -0,0 +1,3 @@
+\input jlplain
+\dump
+\endinput
--- ptex-jtex-1.7+1.orig/debian/ajtex.1
+++ ptex-jtex-1.7+1/debian/ajtex.1
@@ -0,0 +1,48 @@
+.\"                                      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 AJTEX 1 "Nov.  3, 2000"
+.\" 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 <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+ajtex \- tex command with japanese support of ASCII version
+.SH SYNOPSIS
+.B ajtex
+.RI [ options ] "TeX file"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B ajtex
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBajtex\fP is tex command that supports japanese.
+.SH OPTIONS
+ajtex admits almost same options as those of tex so, for a complete
+description, please see manual page of tex.
+.TP
+.B \-help
+Show summary of options.
+.TP
+.B \-version
+Show version of program.
+.SH SEE ALSO
+.BR tex (1),
+.br
+.SH AUTHOR
+This manual page was written by Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>,
+for the Debian GNU/Linux system (but may be used by others).
--- ptex-jtex-1.7+1.orig/debian/ajtex.ini
+++ ptex-jtex-1.7+1/debian/ajtex.ini
@@ -0,0 +1,3 @@
+\input jplain
+\dump
+\endinput
--- ptex-jtex-1.7+1.orig/debian/changelog
+++ ptex-jtex-1.7+1/debian/changelog
@@ -0,0 +1,155 @@
+ptex-jtex (1.7+1-11) unstable; urgency=low
+
+  * TeX Live support should be in unstable now.  Dropped dependency on
+    tetex-bin.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 18 Apr 2007 07:50:38 +0900
+
+ptex-jtex (1.7+1-10) experimental; urgency=low
+
+  * Support TeXLive.
+  * Changed fmtutil to fmtutil-sys in ptexjtexconfig
+  * Made lintian clean;
+   - Removed japanese characters in manual pages.
+   - Used compat to set Compatibility level.
+   - Updated Standard-Version to 3.7.2
+   - Fixed debhelper's Build-Dependency from Build-Depends-Indep: to 
+     Build-Depends: 
+   - Fixed Closing old Bugs of JP.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 26 Mar 2007 11:59:51 +0900
+
+ptex-jtex (1.7+1-9) unstable; urgency=low
+
+  * Fixed rules; every debhelper commands were now under "binary-indep"
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 27 Dec 2002 11:41:25 +0900
+
+ptex-jtex (1.7+1-8) unstable; urgency=low
+
+  * Renamed 20ptexjtex to 20ptexjtex.cnf corresponding to coming new 
+    update-texmf.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun,  8 Dec 2002 20:08:15 +0900
+
+ptex-jtex (1.7+1-7) unstable; urgency=low
+
+  * Fixed postinst/postrm to handle 20ptexjtex more appropriately.
+  * Updated ptexjtexconfig.1 
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 12 Apr 2002 10:19:43 +0900
+
+ptex-jtex (1.7+1-6) unstable; urgency=low
+
+  * Support update-texmf now.  You don't need to modify texmf.cnf any more.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 26 Mar 2002 00:37:32 +0900
+
+ptex-jtex (1.7+1-5.2) unstable; urgency=low
+
+  * Stopped to modify texmf.cnf at installation any more.  You should
+    run "ptexjtexconfig addpath" manually.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 19 Feb 2002 12:49:43 +0900
+
+ptex-jtex (1.7+1-5.1) unstable; urgency=low
+
+  * Updated Standards-Version: 3.5.1, especially refined rules a bit.
+  * Changed Build-Depends to Build-Depends-Indep.
+  * Now /etc/texmf/fmtutil-ajtex.cnf is a conffile (fixed lintian error).
+  * Removed add-log-mailing-address from this file (fixed lintian error).
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 16 Oct 2001 12:00:24 +0900
+
+ptex-jtex (1.7+1-4) unstable; urgency=low
+
+  * Initial Release as an Official Debian package. (closes: #99114)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  7 Jun 2001 08:22:27 +0900
+
+ptex-jtex (1.7+1-3) unstable; urgency=low
+
+  * New Maintainer.
+  * Modified directory structure according to pTeX 2.1.9.
+  * Adopted fmtutil.
+  * Changed path separator from ":" to ";" in texmf.cnf file.
+  * Added missing manual pages.
+
+ -- Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>  Tue,  7 Nov 2000 15:07:50 +0900
+
+ptex-jtex (1.7+1-2) frozen-jp unstable-jp; urgency=low
+
+  * I forgot "copyright.ja" in 1.7+1-1 binary package.  Added it.
+    closes: JP bug 1127
+  * Use debhelper.
+  * Added ptexjtexconfig.
+  * Added prerm and postrm.
+  * Renamed "debianpatch" to "forDebian.patch".
+
+ -- Hiroshi KISE <fuyuneko@ryukyu.ne.jp>  Fri, 14 Jan 2000 23:39:05 +0900
+
+ptex-jtex (1.7+1-1) unstable-jp; urgency=low
+
+  * It is NOT new upstream version.  I changed upstream version because
+    orig.tar.gz differ from <=1.7-6's.
+
+ -- Hiroshi KISE <fuyuneko@ryukyu.ne.jp>  Wed,  5 Jan 2000 23:30:18 +0900
+
+ptex-jtex (1.7-7) unstable-jp; urgency=low
+
+  * Remake package buiding system.
+  * Added English version of copyright.  Thanks to Mr.Hatta.
+  * Deleted "Recommends: platex-base" in control.
+
+ -- Hiroshi KISE <fuyuneko@ryukyu.ne.jp>  Tue,  4 Jan 2000 17:16:12 +0900
+
+ptex-jtex (1.7-6) unstable-jp; urgency=low
+
+  * Moved format files to /var/lib/texmf/web2c because /usr/lib/texmf/web2c
+    is symlink in tetex-bin. Closes: JP bug 1080) 
+  * Changed postinst: Check ajtex.fmt and ajlatex.fmt.
+
+ -- Hiroshi KISE <fuyuneko@ryukyu.ne.jp>  Thu, 23 Dec 1999 18:28:28 +0900
+
+ptex-jtex (1.7-5) unstable-jp; urgency=low
+
+  * Moved to /usr/share/texmf. (Fixed Bug#JP/854)
+  * Still build packages on Debian 2.1.
+
+ -- Hiroshi KISE <fuyuneko@ryukyu.ne.jp>  Mon, 19 Apr 1999 18:27:40 +0900
+
+ptex-jtex (1.7-4) frozen-jp unstable-jp; urgency=low
+
+  * Changed maintainer e-mail address.
+
+ -- Hiroshi KISE <fuyuneko@ryukyu.ne.jp>  Fri, 26 Feb 1999 21:10:51 +0900
+
+ptex-jtex (1.7-3) frozen-jp unstable-jp; urgency=low
+
+  * Changed dependency.
+  * Added manpage that linked to undocumented(7). (Fixed Bug #JP/356)
+  * Fixed "add-log-mailing-address" to new maintainer's in the changelog.
+  * Fixed maintainer's address in the copyright.
+  * Added `frozen-jp unstable-jp' to the changelog.
+  * Moved the ptex-bin package to the non-free section.
+	
+ -- Hiroshi KISE <kise@imicom.or.jp>  Mon, 29 Jun 1998 14:21:01 +0900
+
+ptex-jtex (1.7-2) unstable; urgency=low
+
+  * Move /usr/lib/texmf/ini/{ajtex.fmt,ajlatex.fmt} to /usr/lib/texmf/web2c
+    (Fixed Bug #JP/188)
+  * Change Architecture: to all (Fixed Bug #JP/279)
+  * New maintainer.
+
+ -- Hiroshi KISE <kise@imicom.or.jp>  Tue,  9 Jun 1998 21:36:50 +0900
+
+ptex-jtex (1.7-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Atsushi KAMOSHIDA <kamop@post1.com>  Fri, 26 Sep 1997 01:48:33 +0900
+
+Local variables:
+mode: debian-changelog
+End:
--- ptex-jtex-1.7+1.orig/debian/compat
+++ ptex-jtex-1.7+1/debian/compat
@@ -0,0 +1 @@
+4
--- ptex-jtex-1.7+1.orig/debian/control
+++ ptex-jtex-1.7+1/debian/control
@@ -0,0 +1,19 @@
+Source: ptex-jtex
+Section: non-free/tex
+Priority: optional
+Maintainer: Atsuhito KOHDA <kohda@debian.org>
+Build-Depends: debhelper (>= 3.0.0)
+Standards-Version: 3.7.2
+
+Package: ptex-jtex
+Architecture: all
+Depends: texlive-base-bin, ptex-bin (>= 3.1.10~beta3)
+Description: ASCII jTeX with pTeX
+ ASCII jTeX is Japanese TeX, designed by ASCII corporation.
+ .
+ If ajtex/ajlatex would not work, please try "ptexjtexconfig addpath".
+ Before removing this package, you should do "ptexjtexconfig rempath".
+ .
+ In this version, 'jtex' and 'jlatex' are renamed as 'ajtex' and 'ajlatex',
+ respectively. And these programs are compiled with a recent ptex, which is
+ included in ptex-bin package.  Note ajlatex is of latex209 version.
--- ptex-jtex-1.7+1.orig/debian/copyright
+++ ptex-jtex-1.7+1/debian/copyright
@@ -0,0 +1,39 @@
+This package was debianized by Atsuhito KOHDA <kohda@debian.org> on
+Tue,  7 Nov 2000 15:07:50 +0900.
+
+It was downloaded from 
+http://ring.ip-kyoto.ad.jp/pub/FreeBSD/ports/distfiles/jtex1.7.tar.gz
+
+Copyright:
+
+LEGAL NOTICE
+
+Note: the official copyright notice is written in Japanese and can be 
+      found in the file called "copyright.ja".
+      The governing language of this notice shall be Japanese, and
+      any translation into any other language shall be solely for
+      the convenience.
+
+0. In this notice, the "Software" represents a part of the Japanese TeX
+   distribution that is concerned with Japanese support developed 
+   by ASCII Co.
+
+1. ASCII Co. retains copyright of the Japanese translation of the Software.
+
+2. Use of the Software in any form is permitted provided that it is not 
+   for profit-making (e.g. collecting tolls for using the Software).
+   ASCII Co. shall not be liable for any damages caused by using the
+   Software, whether direct or indirect, incidental or consequential,
+   under any circumstances whatsoever.
+
+3. Copy and redistribution of the Japanese translation of the Software
+   is permitted provided that it is not for commercial purpose.
+
+4. Modification of a part of the Japanese translation of the Software
+   is permitted provided that you notify ASCII Co. of your modification.
+   You shall not release your modification to public without prior
+   approval of ASCII Co.
+   Redistribution of the modified version of the Software is permitted
+   provided that the receiver can easily restore it to the original.
+
+Translation by Masayuki Hatta <mhatta@debian.or.jp>
--- ptex-jtex-1.7+1.orig/debian/copyright.ja
+++ ptex-jtex-1.7+1/debian/copyright.ja
@@ -0,0 +1,21 @@
+(This is the part of README.KANJI)
+
+¤³¤ÎÆüËܸì TeX ¤Ï¡¢¼¡¤Î»ö¹à¤ò³Îǧ¤Î¤¦¤¨ÍøÍѤ·¤Æ²¼¤µ¤¤¡£
+
+1. ÆüËܸì TeX ¤Î¡¢ÆüËܸ첽Éôʬ¤Ë´Ø¤·¤Æ¤Ï³ô¼°²ñ¼Ò¥¢¥¹¥­¡¼¤ËÃøºî¸¢¤¬¤¢
+   ¤ê¤Þ¤¹¡£
+
+2. ¤½¤Î»ÈÍѤ¬Ä¾ÀÜŪ¤Ê±ÄÍøÌÜŪ¡ÊÎ㤨¤Ð¡¢ÍøÍÑ¼Ô¤Ë¥×¥í¥°¥é¥à¤Î»ÈÍÑÎÁ¶â¤ò
+   ¤È¤ëÅù¡Ë¤Ç¤Ê¤¤¸Â¤ê¡¢¤É¤Î¤è¤¦¤ÊÊýË¡¡¢ÌÜŪ¤Ç»ÈÍѤµ¤ì¤Æ¤â¤«¤Þ¤¤¤Þ¤»¤ó¡£
+   ¤¿¤À¤·¡¢¤½¤ì¤Ë¤è¤êÀ¸¤¸¤¿ÌäÂê¤Ë´Ø¤·¤Æ¤Ï°ìÀÚ¡¢³ô¼°²ñ¼Ò¥¢¥¹¥­¡¼¤Ç¤ÏÀÕ
+   Ǥ¤ò»ý¤Á¤Þ¤»¤ó¡£
+
+3. ¾¼Ô¤Ø¤Î¥³¥Ô¡¼¤Ï¡¢¤½¤Î¹Ô°Ù¤¬±ÄÍøÌÜŪ¤Ç¤Ê¤¤¾ì¹ç¤Ë¸Â¤ê¼«Í³¤Ë¹Ô¤Ã¤Æ·ë¹½
+   ¤Ç¤¹¡£
+
+4. ¥×¥í¥°¥é¥à¡ÊÆüËܸ첽¤Ë´Ø·¸¤¹¤ëÉôʬ¡Ë¤Î²þÊѤˤĤ¤¤Æ¤Ï¼«Í³¤Ë¹Ô¤Ã¤Æ¤«
+   ¤Þ¤¤¤Þ¤»¤ó¡£¤¿¤À¤·Âè 3¹à¤Ë¤Ä¤¤¤Æ¤Ï¡¢²þÊÑÁ°¤Î¤â¤Î¤Þ¤¿¤Ï²þÊÑÁ°¤Î¾õÂÖ
+   ¤Ë´Êñ¤ËÌ᤻¤ë·Á¤Ç¹Ô¤Ã¤Æ²¼¤µ¤¤¡£
+
+   ²þÊÑÆâÍÆ¤Ë¤Ä¤¤¤Æ¤Ï³ô¼°²ñ¼Ò¥¢¥¹¥­¡¼¤Ø¤ÎÄÌÃεÁ̳¤¬¤¢¤ë¤â¤Î¤È¤·¡¢¤½¤Î
+   ¸ø³«¤Ë¤Ä¤¤¤Æ¤Ï»öÁ°¤Î¾µÂú¤òɬÍפȤ·¤Þ¤¹¡£
--- ptex-jtex-1.7+1.orig/debian/dirs
+++ ptex-jtex-1.7+1/debian/dirs
@@ -0,0 +1,6 @@
+usr/share/texmf/ptex/ajtex/config
+usr/bin
+usr/sbin
+usr/share/man/man1
+etc/texmf
+usr/share/ptex-jtex
--- ptex-jtex-1.7+1.orig/debian/fmtutil-ajtex.cnf
+++ ptex-jtex-1.7+1/debian/fmtutil-ajtex.cnf
@@ -0,0 +1,32 @@
+# Thomas Esser, Copyright 1998, 1999. Public domain.
+# fmtutil.cnf: configuration file for fmtutil.
+
+# Customize this file to your needs, e.g.
+#   - remove or uncomment formats that you don't need
+#   - add your own formats
+#   - change default engine / flags for standard formats
+
+# Some notes:
+#   1) tex and amstex just load hyphen.tex. No customization.
+#   You can have you own customized (via babel's hyphen.cfg)
+#   formats on top of plain by using "bplain.tex" instead of
+#   plain.tex (see e.g. bplain.ini file for bplain format).
+#
+#   2) etex loads language.def, not language.dat.
+#
+#   3) The symbolic link to the right engines (e.g. bplain -> tex)
+#      will be generated by the "texlinks" script. So, if you call
+#      fmtutil "by hand" and not via texconfig, please also call
+#      texlinks afterwards.
+
+# The format of the table is:
+
+# format	engine		pattern-file	arguments
+
+# The last part of "arguments" must be the name of the file to run
+# initex (or another "ini"-engine) on.
+
+# Standard formats (plain, latex) with all engines:
+
+ajtex		ptex	-	ajtex.ini
+ajlatex		ptex	-	ajlatex.ini
--- ptex-jtex-1.7+1.orig/debian/forDebian.patch
+++ ptex-jtex-1.7+1/debian/forDebian.patch
@@ -0,0 +1,10 @@
+--- EUCsetup.orig	Tue Feb 26 14:43:42 1991
++++ EUCsetup	Tue Jan  4 19:04:07 2000
+@@ -29,6 +29,7 @@
+  mv $i $j
+  chmod 440 $j
+  kanji/sjistoeuc < $j > $i
++ rm -f $j
+ done
+  
+ for i in $PATCHY; do
--- ptex-jtex-1.7+1.orig/debian/instman.sh
+++ ptex-jtex-1.7+1/debian/instman.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+mandir=debian/ptex-jtex/usr/share/man/man1
+
+for m in ajtex.1 ajlatex.1 ptexjtexconfig.1
+do
+install -m 644 debian/$m $mandir
+done
--- ptex-jtex-1.7+1.orig/debian/postinst
+++ ptex-jtex-1.7+1/debian/postinst
@@ -0,0 +1,44 @@
+#! /bin/sh
+# postinst script for ptex-jtex
+#
+# see: dh_installdeb(1)
+
+set -e
+
+PTEXJTEXCONFIG=/usr/sbin/ptexjtexconfig
+UPDTXMF=/usr/sbin/update-texmf
+TXMFD=/etc/texmf/texmf.d
+CNF=/usr/share/ptex-jtex
+
+case "$1" in
+    configure)
+	if [ ! -f ${TXMFD}/20ptexjtex.cnf ] ; then
+	    cp ${CNF}/20ptexjtex.cnf ${TXMFD}
+	fi
+	if [ -x ${UPDTXMF} ] ; then ${UPDTXMF} -v ; fi
+	if [ -x /usr/bin/mktexlsr ] ; then
+	    /usr/bin/mktexlsr
+	fi
+	TEMPFILE=`tempfile -p ajtx`
+	echo "Running iniptex. This may take some time. ..."
+	${PTEXJTEXCONFIG} formats > ${TEMPFILE}
+	echo "Output of iniptex is in ${TEMPFILE}"
+	echo
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- ptex-jtex-1.7+1.orig/debian/postrm
+++ ptex-jtex-1.7+1/debian/postrm
@@ -0,0 +1,35 @@
+#! /bin/sh
+# postrm script for ptex-jtex
+#
+# see: dh_installdeb(1)
+
+set -e
+
+TXMFD=/etc/texmf/texmf.d
+UPDTXMF=/usr/sbin/update-texmf
+
+case "$1" in
+       remove)
+	mv -f ${TXMFD}/20ptexjtex.cnf ${TXMFD}/20ptexjtex.bak
+	if [ -x ${UPDTXMF} ] ; then ${UPDTXMF} -v ; fi
+	rm -f /var/lib/texmf/web2c/aj*tex.fmt
+	rm -f /var/lib/texmf/web2c/aj*tex.log
+	if [ -x /usr/bin/mktexlsr ] ; then
+	/usr/bin/mktexlsr
+	fi
+        ;;
+
+       purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	rm -f ${TXMFD}/20ptexjtex.cnf ${TXMFD}/20ptexjtex.bak ${TXMFD}/20ptexjtex
+        ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 0
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
--- ptex-jtex-1.7+1.orig/debian/preinst
+++ ptex-jtex-1.7+1/debian/preinst
@@ -0,0 +1,41 @@
+#! /bin/sh
+# preinst script for ptex-jtex
+#
+# see: dh_installdeb(1)
+
+set -e
+
+CNFF=/etc/texmf/texmf.d/20ptexjtex
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+
+case "$1" in
+    install|upgrade)
+        if [ ! -f ${CNFF}.cnf ]; then
+	    if [ -f ${CNFF} ]; then
+		mv ${CNFF} ${CNFF}.cnf
+	    elif [ -f ${CNFF}.bak ]; then
+		mv ${CNFF}.bak ${CNFF}.cnf
+	    fi
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- ptex-jtex-1.7+1.orig/debian/prerm
+++ ptex-jtex-1.7+1/debian/prerm
@@ -0,0 +1,29 @@
+#! /bin/sh
+# prerm script for ptex-jtex
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    remove)
+        ;;
+
+    upgrade|deconfigure)
+        ;;
+
+    failed-upgrade)
+        ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- ptex-jtex-1.7+1.orig/debian/ptexjtexconfig
+++ ptex-jtex-1.7+1/debian/ptexjtexconfig
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+TEXMF=/usr/share/texmf
+formats=$TEXMF/web2c
+append_db=$TEXMF/web2c/mktexupd
+texmfcnf=/etc/texmf/texmf.cnf
+ajtexpath='TEXINPUTS.ajtex = .;$TEXMF/{ptex,tex}/{ajtex,latex209,generic,}//'
+ajlatexpath='TEXINPUTS.ajlatex	= .;$TEXMF/{ptex,tex}/{ajtex,latex209,generic,}//'
+
+makeformat()
+{
+    FMT=$1
+    if [ -x /usr/bin/ptex ]; then
+	TEXINPUTS=$TEXMF/ptex/ajtex// fmtutil-sys --cnffile \
+	/etc/texmf/fmtutil-ajtex.cnf --byfmt $FMT
+    else
+	echo "ptex command does NOT exist!!!"
+    fi
+}
+
+init_ajtex_fmt() {
+	test -f $TEXMF/ptex/ajtex/config/ajtex.ini && makeformat ajtex
+}
+
+init_ajlatex_fmt() {
+	test -f $TEXMF/ptex/ajtex/config/ajlatex.ini && makeformat ajlatex
+}
+
+init_tex_formats() {
+	init_ajtex_fmt
+	init_ajlatex_fmt
+}
+
+case $1 in
+init|formats)
+    init_tex_formats ;
+	;;
+ajtex)
+    init_ajtex_fmt ;
+	 ;;
+ajlatex)
+    init_ajlatex_fmt ;
+	 ;;
+*)	echo "Usage $0 [ formats | ajtex | ajlatex ]" ;
+	exit 1
+esac
+
--- ptex-jtex-1.7+1.orig/debian/ptexjtexconfig.1
+++ ptex-jtex-1.7+1/debian/ptexjtexconfig.1
@@ -0,0 +1,46 @@
+.\"                                      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 PTEXJTEXCONFIG 1 "Nov.  3, 2000"
+.\" 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 <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+ptexjtexconfig \- shell script to generate formats files for ajtex/ajlatex
+.SH SYNOPSIS
+.B ptexjtexconfig
+.RI "cmd"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B ptexjtexconfig
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBptexjtexconfig\fP is a shell script which generates formats files for 
+ajtex/ajlatex.
+.SH COMMANDS
+This program is not meant for users to run but is usually called in 
+package scripts like postinst.  It takes cmd like 'formats', 'ajtex'
+or 'ajlatex'.
+For a complete description, please read the shell script itself.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.br
+.SH AUTHOR
+This manual page was written by Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>,
+for the Debian GNU/Linux system (but may be used by others).
--- ptex-jtex-1.7+1.orig/debian/rules
+++ ptex-jtex-1.7+1/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+# 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
+
+# This is the debhelper compatability version to use.
+#export DH_COMPAT=3
+
+PACK=ptex-jtex
+JTEX=jtex1.7.tar.gz
+SRCDIR=debian/src
+
+#TEXOPT=TEXINPUTS=$(CURDIR)/$(SRCDIR)/ajtex//
+instdir=$(CURDIR)/debian/$(PACK)/usr/share/texmf/ptex
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+#	$(MAKE)
+
+	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
+	rm -rf $(SRCDIR)
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp.
+#	$(MAKE) install DESTDIR=`pwd`/debian/tmp
+	mkdir -p $(SRCDIR)
+	tar zxf $(JTEX) -C $(SRCDIR)
+	(cd $(SRCDIR) && \
+	 patch -p0 < $(CURDIR)/debian/forDebian.patch && ./EUCsetup)
+
+	mkdir $(SRCDIR)/ajtex
+	(cd $(SRCDIR) && cp macros/* jmacros/* ajtex/)
+
+	cp -a $(SRCDIR)/ajtex $(instdir)
+	install -m 644 debian/aj*tex.ini $(instdir)/ajtex/config
+	(cd debian/$(PACK)/usr/bin && ln -s ptex ajtex && \
+		ln -s ptex ajlatex )
+	install -m 755 debian/ptexjtexconfig debian/$(PACK)/usr/sbin/
+	install -m 644 debian/fmtutil-ajtex.cnf debian/$(PACK)/etc/texmf
+	install -m 644 debian/20ptexjtex debian/$(PACK)/usr/share/ptex-jtex/20ptexjtex.cnf
+
+# Build architecture-independent files here.
+binary-indep: build install
+#	dh_testversion
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installinit
+#	dh_installcron
+	dh_installman debian/ajtex.1 debian/ajlatex.1 debian/ptexjtexconfig.1
+#	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs 
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	# You may want to make some executables suid here.
+#	dh_suidregister
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do here.
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure