debian/0000755000000000000000000000000012220643745007173 5ustar debian/compat0000644000000000000000000000000211550545722010372 0ustar 5 debian/source/0000755000000000000000000000000011550545722010474 5ustar debian/source/format0000644000000000000000000000001411550545722011702 0ustar 3.0 (quilt) debian/dirs0000644000000000000000000000001011550545722010047 0ustar usr/bin debian/copyright0000644000000000000000000000177411550545722011140 0ustar Files: debian/* Copyright: (C) 2003-2006 Fredrik Steen (C) 2008 Robin Cornelius Files: * Copyright: (C) 2002-2007 Marc Vertes Licence: GPL-v2 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; version 2 dated June, 1991. 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000126311550545722010601 0ustar Source: txt2man Section: text Priority: optional Homepage: http://mvertes.free.fr/download/ Maintainer: Fredrik Steen Uploaders: Robin Cornelius Build-Depends: debhelper (>= 5), gawk Standards-Version: 3.9.1 Vcs-Git: git://git.debian.org/collab-maint/txt2man.git Vcs-Browser: http://git.debian.org/?p=collab-maint/txt2man.git Package: txt2man Architecture: all Depends: ${misc:Depends},gawk Description: Converts flat ASCII text to man page format It is a shell script using gnu awk, that should run on any Unix-like system. The syntax of the ASCII text is very straightforward and looks very much like the output of the man(1) program. debian/rules0000755000000000000000000000207611550545722010261 0ustar #!/usr/bin/make -f configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. $(MAKE) txt2man.1 src2man.1 bookman.1 touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. touch build-stamp clean: dh_testdir dh_testroot # remove generated manpage and stamps $(MAKE) clean dh_clean build-stamp configure-stamp install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/txt2man. dh_install txt2man /usr/bin dh_install bookman /usr/bin dh_install src2man /usr/bin binary-arch: # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installdocs dh_installmenu dh_installman txt2man.1 src2man.1 bookman.1 dh_installchangelogs Changelog dh_link dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep .PHONY: build clean binary-indep binary-arch binary install configure binary-arch debian/patches/0000755000000000000000000000000012220623106010607 5ustar debian/patches/debian-changes-1.5.5-2.10000644000000000000000000000532312220623106014327 0ustar Description: Upstream changes introduced in version 1.5.5-2.1 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . txt2man (1.5.5-2.1) unstable; urgency=low . * Switch to dpkg-source 3.0 . The person named in the Author field signed this changelog entry. Author: Fredrik Steen --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- txt2man-1.5.5.orig/bookman +++ txt2man-1.5.5/bookman @@ -83,16 +83,16 @@ done shift $(($OPTIND - 1)) date=${date:-$(date +'%d %B %Y')} -[[ $1 ]] || set -- $(while read; do echo $REPLY; done) +[ $1 ] || set -- $(while read REPLY; do echo $REPLY; done) -[[ $outfile ]] && post="$post >$outfile" +[ $outfile ] && post="$post >$outfile" { # Compute table of content from postscript output. # Generate output in gtroff intermediate format, so # it can be merged with content. { - [[ -f $cover ]] && cat $cover || { + [ -f $cover ] && cat $cover || { printf ".af %% i\n.P1\n" printf ".OH ||%s||\n" "$volume" printf ".EH ||%s||\n" "$volume" --- txt2man-1.5.5.orig/txt2man +++ txt2man-1.5.5/txt2man @@ -139,11 +139,11 @@ do p) doprobe=1;; I) itxt="$OPTARG§$itxt";; B) btxt=$OPTARG;; - T) post="groff -mandoc -Tlatin1 | ${PAGER:-more}";; + T) post="groff -mandoc -Tlatin1 | ${PAGER:-pager}";; X) post="groff -mandoc -X";; *) usage; exit;; esac done shift $(($OPTIND - 1)) date=${date:-$(date +'%d %B %Y')} @@ -162,7 +163,7 @@ then rel=$(pwd | sed 's:/.*[^0-9]/::g; s:/.*::g') fi -head=".\\\" Text automatically generated by txt2man +head="\"Text automatically generated by txt2man .TH $title $section \"$date\" \"$rel\" \"$volume\"" # All tabs converted to spaces @@ -170,7 +171,7 @@ expand $* | # gawk is needed because use of non standard regexp gawk --re-interval -v head="$head" -v itxt="$itxt" -v btxt="$btxt" ' BEGIN { - print head + print ".\\"head avar[1] = btxt; avar[2] = itxt for (k in avar) { mark = (k == 1) ? "\\fB" : "\\fI" @@ -186,7 +187,7 @@ BEGIN { } { # to avoid some side effects in regexp - sub(/\.\.\./, "\\.\\.\\.") + gsub(/\.\.\./, "\\.\\.\\.") # remove spaces in empty lines sub(/^ +$/,"") } debian/patches/remove-ksh-check.patch0000644000000000000000000000062511550545722015002 0ustar Remove check for ksh Index: txt2man-1.5.5/txt2man =================================================================== --- txt2man-1.5.5.orig/txt2man 2011-04-07 15:04:15.000000000 +0200 +++ txt2man-1.5.5/txt2man 2011-04-07 15:05:54.000000000 +0200 @@ -1,5 +1,4 @@ #!/bin/sh -test "$HOME" = ~ || exec ksh $0 "$@" # try ksh if sh too old (not yet POSIX) # Copyright (C) 2001, 2002, 2003 Marc Vertes debian/patches/series0000644000000000000000000000006011550545722012034 0ustar remove-ksh-check.patch debian-changes-1.5.5-2.1 debian/changelog0000644000000000000000000000470212220643745011050 0ustar txt2man (1.5.5-4.1) unstable; urgency=low * Non-maintainer upload. * Fix CVE-2013-1444: insecure use of temporary files by removing apparant debug output from patches/debian-changes-1.5.5-2.1 (Closes: #724614) Thanks: Patrick Cherry of Bytemark Hosting -- Jonathan Wiltshire Wed, 25 Sep 2013 21:29:29 +0100 txt2man (1.5.5-4) unstable; urgency=low * Updated Standards version * Remove broken check for ksh (Closes:#620562) (in 1.5.5-3 upload) -- Fredrik Steen Mon, 11 Apr 2011 11:33:43 +0200 txt2man (1.5.5-3) unstable; urgency=medium * Switch to dpkg-source 3.0 -- Fredrik Steen Thu, 07 Apr 2011 15:08:28 +0200 txt2man (1.5.5-2) unstable; urgency=low * Use "pager" when using option -T (Closes:#530342) -- Fredrik Steen Sun, 29 Nov 2009 23:25:01 +0100 txt2man (1.5.5-1.1) unstable; urgency=medium * Non-maintainer upload. * Fix bashisms in 'bookman' script (Closes: #473696) -- Chris Lamb Sat, 12 Apr 2008 03:26:26 +0100 txt2man (1.5.5-1) unstable; urgency=low * New upstream release. (Closes:#415390) * Incorrect generation of nroff for command line arguments (Closes: #416391, #440214) * Use gsub instead of sub to correctly parse file. (Closes: #221268) * Fix lintian warnings due to incorrectly generated nroff comments -- Robin Cornelius Tue, 25 Mar 2008 11:56:20 +0000 txt2man (1.5.1-1) unstable; urgency=low * New upstream release -- Fredrik Steen Fri, 27 Oct 2006 08:57:02 +0200 txt2man (1.5-2) UNRELEASED; urgency=low * NOT RELEASED YET -- Fredrik Mon, 23 Oct 2006 12:36:34 +0200 txt2man (1.5-1) unstable; urgency=low * New upstream release -- Fredrik Steen Mon, 23 Oct 2006 11:27:11 +0200 txt2man (1.4.8-2) unstable; urgency=low * Fixed watch file. (Closes:#300154) * Fixed escaping of hyphens (Closes:#300152) - patch from Wesley J. Landaker. Thank you. -- Fredrik Steen Fri, 18 Mar 2005 08:50:28 +0100 txt2man (1.4.8-1) unstable; urgency=low * New upstream release * This version fixes a bug in tag list parsing (Closes:#198187) -- Fredrik Steen Sun, 13 Jul 2003 00:35:30 +0200 txt2man (1.4.7-1) unstable; urgency=low * Initial Release. * Upload (Closes:#178953) -- Fredrik Steen Wed, 29 Jan 2003 16:03:19 +0100 debian/docs0000644000000000000000000000000711550545722010044 0ustar README debian/watch0000644000000000000000000000042311550545722010224 0ustar # 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=3 http://mvertes.free.fr/download/txt2man-(.*)\.tar\.gz debian uupdate