debian/0000755000000000000000000000000012114307200007154 5ustar debian/clean0000644000000000000000000000002112114307200010152 0ustar untex debian/*.1 debian/install0000644000000000000000000000001612114307200010542 0ustar untex usr/bin debian/watch0000644000000000000000000000024312114307200010204 0ustar version=3 http://www.ctan.org/pkg/untex \ .*/untex-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) # Bart Martens Mon, 21 Jan 2013 21:12:04 +0000 debian/rules0000755000000000000000000000054512114307200010240 0ustar #!/usr/bin/make -f PACKAGE = untex export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed override_dh_auto_install: # Skip. See debian/install override_dh_auto_build: $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(PACKAGE).c -o $(PACKAGE) %: dh $@ # End of file debian/changelog0000644000000000000000000001133312114307200011027 0ustar untex (1:1.2-5) unstable; urgency=low [ Jari Aalto ] * debian/control - (Homepage): Update URL. Patch thanks to Stefan Breunig (Closes: #689261). - (Standards-Version): Update to 3.9.4. * debian/copyright - (Source): Update URL. Update year. [ tony mancill ] * include updated d/watch file; thank you to Bart Martens. -- Jari Aalto Thu, 28 Feb 2013 11:12:47 +0200 untex (1:1.2-4) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/patches - (30, 40): New. Fix Gcc compiling. * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables. -- Jari Aalto Sat, 24 Mar 2012 01:20:38 -0400 untex (1:1.2-3) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): update to debhelper 9, dpkg-dev 1.16.1. - (Standards-Version): Update to 3.9.2. * debian/copyright - Update to DEP5. * debian/rules - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Tue, 14 Feb 2012 15:58:42 -0500 untex (1:1.2-2) unstable; urgency=low * debian/rules - (binary-arch): adjust install calls. Patch thanks to Antonio Terceiro (Closes: #575409). -- Jari Aalto Thu, 25 Mar 2010 22:02:40 +0200 untex (1:1.2-1) unstable; urgency=low * New maintainer (Closes: #547222). * New upstream release; forced to use epoch. * Move to packaging format "3.0 (quilt)". * debian/clean - New file. * debian/compat - New file. * debian/control - (Build-Depends): Add debhelper - (Description): rewrite long part. - (Homepage): New field. - (Standards-Version): Update to 3.8.4. - (Vcs-*): new fields. * debian/copyright - Update full layout to follow generic template. - (downloaded from): Update upstream URL. - (License): update from untex.c * debian/patches - (Number 10): Convert inline changes to a patch. - (Number 20): Document problems in BUGS section of manual page. (Closes: #352788). * debian/pod2man.mk - New file. Convert original Debian untex.1 from previous version into debian/untex.1.pod for later reference. * debian/source/format - New file. * debian/substvars - Delete debhelper leftover file. * debian/untex.install - New file. * debian/untex.1.pod - New manual page. * debian/untex.manpages - New file. * debian/untex.prerm - Add DEBHELPER token (lintian). * debian/rules - Convert to use dh(1). * debian/watch - New file. * Makefile - Delete non-upstream file. * untex.1 - Deleted original Debian manual from version 9210-11. The current version comes with one. -- Jari Aalto Wed, 03 Mar 2010 20:25:54 +0200 untex (9210-11) unstable; urgency=low * QA upload. + Set maintainer to Debian QA Group . * Note source location in debian/copyright. (Closes: #469655). * Add set -e to prerm. * Update FSF address in debian/copyright. * Bump Standards Version to 3.8.3. + Remove -s from Makefile and strip in rules. (Closes: #438235). -- Barry deFreese Sat, 31 Oct 2009 09:44:16 -0400 untex (9210-10) unstable; urgency=low * fix prerm/postinst scripts . (closes: #129308) -- Enrique Zanardi Mon, 29 Dec 2003 16:03:16 +0000 untex (9210-9) unstable; urgency=low * Install manpages under /usr/share/man . (Closes: Bug#80772) * Changed the maintainer address. -- Enrique Zanardi Tue, 20 Feb 2001 09:41:33 +0000 untex (9210-8) unstable; urgency=low * Only close a file if previously opened. -- Enrique Zanardi Sun, 28 Dec 1997 13:04:50 +0000 untex (9210-7) unstable; urgency=low * Corrected permissions in /usr/doc/untex. (Bug#12679). -- Enrique Zanardi Wed, 10 Sep 1997 00:43:39 +0100 untex (9210-6) unstable; urgency=low * depends on libc6. -- Enrique Zanardi Wed, 2 Jul 1997 14:03:37 +0100 untex (9210-5) unstable; urgency=low * New mantainer. * Converted to new packaging format (Closes Bug#4038,Bug#5111). * Added manpage. -- Enrique Zanardi Fri, 14 Mar 1997 17:23:57 +0000 untex (9210-4); priority=LOW * Added extended description. * Added debian.Changelog. * Modified debian.rules and debian.README. -- Erick Branderhorst debian/prerm0000755000000000000000000000020512114307200010224 0ustar #!/bin/sh set -e if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/untex ]; then rm -f /usr/doc/untex fi #DEBHELPER# debian/patches/0000755000000000000000000000000012114307200010603 5ustar debian/patches/20-untex.man.patch0000644000000000000000000000147512114307200013767 0ustar From e7eb0312f0423f6efcfe56a5a3131f0e787e3cd0 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Wed, 3 Mar 2010 20:24:30 +0200 Subject: [PATCH] untex.man: (BUGS): Document problems Signed-off-by: Jari Aalto --- untex.man | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/untex.man b/untex.man index 412a999..08e10e1 100644 --- a/untex.man +++ b/untex.man @@ -64,6 +64,9 @@ latex, tex, detex The \-g and \-u options only work for german accented characters. Not fixed due to lack of time, any help is appreciated. The \\includeonly command is ignored. + +Using \-u option in a UTF-8 terminal doesn't work. Using it alone in +a Latin1 terminal doesn't work either, you must also add \-uiso. .PP .SH AUTHORS Untex was written by Michael Staats -- 1.7.0 debian/patches/series0000644000000000000000000000012212114307200012013 0ustar 10-fopen-fix.patch 20-untex.man.patch 30-gcc-include.patch 40-format-string.patch debian/patches/40-format-string.patch0000644000000000000000000000101212114307200014633 0ustar From: Jari Aalto Subject: Fix printf() call without format specifier --- untex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/untex.c +++ b/untex.c @@ -399,7 +399,7 @@ if (envc >= MAXCMDLEN - 1) envc--; } env[envc-1] = 0; - if (!noenv) printf(env); + if (!noenv) printf("%s",env); envtst[0] = 0; @@ -473,7 +473,7 @@ envtst[i] = 0; } } - if (!noenv) printf(envtst); + if (!noenv) printf("%s",envtst); } } ungetc(c, inf); debian/patches/10-fopen-fix.patch0000644000000000000000000000140112114307200013731 0ustar From 26bd4adfd62885162bd6ab882e3e02dc84d4e496 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Wed, 3 Mar 2010 19:49:01 +0200 Subject: [PATCH] [PATCH] untex.c: Fix fopen(). Patch by -- Enrique Zanardi Signed-off-by: Jari Aalto --- untex.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/untex.c b/untex.c index b6556d1..9677ff0 100644 --- a/untex.c +++ b/untex.c @@ -109,8 +109,10 @@ int main(int argc, char *argv[]) if (inf == NULL) for (;i Subject: Add missing includes for functions strcat(), exit() etc. --- untex.c | 2 ++ 1 file changed, 2 insertions(+) --- a/untex.c +++ b/untex.c @@ -41,6 +41,8 @@ */ +#include +#include #include #include #include debian/source/0000755000000000000000000000000012114307200010454 5ustar debian/source/format0000644000000000000000000000001412114307200011662 0ustar 3.0 (quilt) debian/untex.1.pod0000644000000000000000000000545112114307200011167 0ustar # Copyright # # Copyright (C) 2009-2010 Jari Aalto # Copyright (C) 1997-2003 Enrique Zanardi # # License # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "tility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less # # To check the syntax: # # podchecker *.pod # # Create manual page with command: # # pod2man PAGE.N.pod > PAGE.N =pod =head1 NAME untex - Remove LaTeX commands from input =head1 SYNOPSIS untex [options] FILE ... =head1 DESCRIPTION Untex removes all LaTeX commands from file1, extracting the contents to stdout. If FILE is "-", stdin will be used. =head1 OPTIONS =over 4 =item B<-a> Remove argument of commands. Implies option B<-o>. =item B<-e> Remove environment names. =item B<-g> Replace all "a (etc.) with ibm characters (CP 850) characters (german.sty). Implies option B<-u>. =item B<-giso>: Like B<-uiso> but also replace all "a (etc.) with iso characters (german.sty). =item B<-gascii>: Like B<-uascii> but replace all "a (etc.) with ascii characters (german.sty). =item B<-i> Process \include and \input. =item B<-m> Remove all math =item B<-o> Remove options to commands =item B<-u> Replace all \"a (etc.) with ibm (CP 850) characters. =item B<-uiso> Replace all \"a (etc.) with iso characters. =item B<-uascii> Replace all \"a (etc.) with ascii characters (ae, ss, ...). =back =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO tex(1) unrtf(1) =head1 AUTHORS Program was written by Michael Staats This manual page was written by Enrique Zanardi for the Debian GNU system (but may be used by others). Updated by Jari Aalto . Released under license GNU GPL version 2 or (at your option) any later version. For more information about license, visit . =cut debian/compat0000644000000000000000000000000212114307200010352 0ustar 9 debian/copyright0000644000000000000000000000426112114307200011112 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: untex Upstream-Contact: Mohammad Hafiz bin Ismail , Source: http://www.ctan.org/pkg/untex Files: * Copyright: 2004-2005 Mohammad Hafiz bin Ismail , License: Custom /* Version 1.2 (06 Apr 1994) . untex.c: Copyright Michael Staats (michael@hal6000.thp.uni-duisburg.de) This source can be freely distributed according to the GNU Public license, which is available via ftp at many anon ftp servers. . Warning: I give no warranty whatever. Please note, that this is one of the first versions of untex, there might be bugs. I haven't tested it completely. . 06 Apr 94: bugfix for -m (\$ wasn't recognized as escaped), thanks to mazumdar@ringer.cs.utsa.edu (Subhasish Mazumdar), also for hints for previous improvements. . 30 Mar 94: rewrite of Umlaut processing Added -i option, better support for environments. Michael Staats (michael@hal6000.thp.uni-duisburg.de) - 4 Oct 92: modified for conversation of "a -> ae etc.: Denis Endisch (denis@smoky.ikf.physik.uni-frankfurt.de) . */ Files: debian/* Copyright: 2010-2013 Jari Aalto 2009 Barry deFreese 1997-2003 Enrique Zanardi 1995 Erick Branderhorst License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/manpages0000644000000000000000000000001212114307200010663 0ustar untex.man debian/control0000644000000000000000000000126012114307200010556 0ustar Source: untex Section: tex Priority: optional Build-Depends: debhelper (>= 9) Maintainer: Jari Aalto Standards-Version: 3.9.4 Vcs-Browser: http://git.debian.org/?p=collab-maint/untex.git Vcs-Git: git://git.debian.org/git/collab-maint/untex.git Homepage: http://www.ctan.org/pkg/untex Package: untex Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: remove LaTeX commands from input The program will remove “some LaTeX commands” from a file (it will optionally try to strip out all mathematics, too). It also has an option to honour \input and \include commands in the file. Input is read from files and results are sent to stdout.