--- trueprint-5.3.orig/debian/README.Debian +++ trueprint-5.3/debian/README.Debian @@ -0,0 +1,7 @@ +Debian specific notes for Trueprint +=================================== + +For a proper installation of your printer, follow the steps +mentioned in the README file. +A script for more user convencience will be in one of the next +package releases. --- trueprint-5.3.orig/debian/changelog +++ trueprint-5.3/debian/changelog @@ -0,0 +1,116 @@ +trueprint (5.3-4.1) unstable; urgency=medium + + * Non-maintainer upload. + * Get rid of install-info calls in maintainer scripts. (Closes: #708500) + * Forcefully truncate lines exceeding MAXLINELENGTH. (Closes: #729278) + * Fix typo in description. (Closes: #406654) + * Use Homepage field. (Closes: #615335) + + -- Andreas Beckmann Sat, 18 Jan 2014 23:15:04 +0100 + +trueprint (5.3-4) unstable; urgency=low + + * New maintainer (Closes: #374128) + + -- Henrique Haas Thu, 21 Sep 2006 20:50:00 -0300 + +trueprint (5.3-3) unstable; urgency=low + + * QA Upload + * Set Maintainer to QA Group (Orphaned, #374128) + * Higher Compat level, build depend on at least debhelper 4.0.0 + * Small update for debian/rules + + + -- Michael Ablassmeier Thu, 6 Jul 2006 11:00:23 +0200 + +trueprint (5.3-2) unstable; urgency=low + + * Officially close the missing Build-Depends: bug. Closes: #150792; + * Added descriptions of supported programming languages. Closes: #115889; + + -- Othmar Pasteka Sat, 13 Jul 2002 21:41:56 +0200 + +trueprint (5.3-1) unstable; urgency=low + + * New upstream release; + * Added the two new options to the man page + + -- Othmar Pasteka Thu, 12 Jul 2001 12:11:07 +0200 + +trueprint (5.2.1-5) unstable; urgency=low + + * added Build-Depends: debhelper + + -- Othmar Pasteka Mon, 11 Sep 2000 19:23:54 +0200 + +trueprint (5.2.1-4) unstable; urgency=low + + * changed maintainer field to othmar@debian.org + + -- Othmar Pasteka Tue, 25 Jul 2000 02:24:07 +0200 + +trueprint (5.2.1-3) unstable; urgency=low + + * the change in configure.in make the Build-Depends control field + obsolete (see also the 5.2.1-2 entry below) + * removed the suggestion of diff (because it's in base, that's why it is + already installed) + * add suggestion of lpr instead of a recommendation of it (as + suggested in #54279) + + -- Othmar Pasteka Mon, 20 Mar 2000 21:43:30 +0100 + +trueprint (5.2.1-2) unstable; urgency=low + + * configure.in changed to just produce a warning if lpr is missing + instead of aborting the configure run (Closes #54279; which was closed + in a not satisfying way in 5.1-2 so, now a new, proposed solution by + the submitter was taken to fix this) + + -- Othmar Pasteka Mon, 20 Mar 2000 03:19:45 +0100 + +trueprint (5.2.1-1) unstable; urgency=low + + * New upstream version packaged. New features: support for Pike, + specifying the postscript level, suppressing of lines around + headers. + * Added autodetection of Pike scripts with the suffix .pike and .pmod. + These extensions will also be available in the next version of + Trueprint. + * Updated the manpage listing the additional extensions. + + -- Othmar Pasteka Sat, 19 Feb 2000 17:31:49 +0100 + +trueprint (5.1-3) unstable; urgency=low + + * Suggests: diff; because diff is one of the many useful options to print + differences between source files + + -- Othmar Pasteka Thu, 13 Jan 2000 02:03:45 +0100 + +trueprint (5.1-2) unstable; urgency=low + + * cleaning up of files in debian/, fixes #54284 + * Recommends: lpr|lprng added and + Build-Depends: lpr|lprng added; fixes #54279 + * changed the copyright file; fixes #54281 + * placed the printers file in /etc/trueprint; fixes #54283 + + -- Othmar Pasteka Mon, 10 Jan 2000 01:23:01 +0100 + +trueprint (5.1-1) unstable; urgency=low + + * Package sponsored by Edward Betts for + Othmar Pasteka . + + * Initial Release. + * Modifications to Makefile.in because autoconf is not completely + supported and to conform to FHS + * This is my first Debian package. + + -- Edward Betts Tue, 23 Nov 1999 02:34:08 +0100 + +Local variables: +mode: debian-changelog +End: --- trueprint-5.3.orig/debian/compat +++ trueprint-5.3/debian/compat @@ -0,0 +1 @@ +5 --- trueprint-5.3.orig/debian/control +++ trueprint-5.3/debian/control @@ -0,0 +1,26 @@ +Source: trueprint +Section: text +Priority: optional +Maintainer: Henrique Haas +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 5.0.0), lpr, dpatch +Homepage: http://www.gnu.org/software/trueprint/trueprint.html + +Package: trueprint +Architecture: any +Depends: ${shlibs:Depends} +Recommends: lpr +Description: pretty printing of source code + This program generates a pretty output of source codes in many + programming languages. The result could be printed or written to + a Postscript file. + . + The following programming languages are supported: + * C + * C++ + * Java + * Pascal + * Perl + * Pike + * Sh (Shell) + * Verilog --- trueprint-5.3.orig/debian/copyright +++ trueprint-5.3/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Othmar Pasteka + +The current Debian maintainer is Henrique Haas + +It was downloaded from http://ftp.gnu.org/gnu/trueprint/ + +Upstream Authors: Lezz Giles + +Copyright: 1989 - 2006 Lezz Giles + +License: GNU General Public License, version 2 and later + + 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. + + 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 with + the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; + if not, write to the Free Software Foundation, Inc., 51 Franklin St, + Fifth Floor, Boston, MA 02110-1301, USA. --- trueprint-5.3.orig/debian/dirs +++ trueprint-5.3/debian/dirs @@ -0,0 +1 @@ +etc/trueprint --- trueprint-5.3.orig/debian/docs +++ trueprint-5.3/debian/docs @@ -0,0 +1,2 @@ +NEWS +README --- trueprint-5.3.orig/debian/info +++ trueprint-5.3/debian/info @@ -0,0 +1 @@ +doc/trueprint.info --- trueprint-5.3.orig/debian/patches/00list +++ trueprint-5.3/debian/patches/00list @@ -0,0 +1 @@ +01_manpage.dpatch --- trueprint-5.3.orig/debian/patches/01_manpage.dpatch +++ trueprint-5.3/debian/patches/01_manpage.dpatch @@ -0,0 +1,144 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_manpage.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fix upstream manpage + +@DPATCH@ + +diff -Nru trueprint-5.3.orig/doc/trueprint.1 trueprint-5.3/doc/trueprint.1 +--- trueprint-5.3.orig/doc/trueprint.1 2000-02-17 00:12:38.000000000 -0200 ++++ trueprint-5.3/doc/trueprint.1 2006-09-26 21:54:07.000000000 -0300 +@@ -46,29 +46,29 @@ + .B "Language Suffix language option" + + .TP +-C .c .h -language=c ++C .c .h \-language=c + .TP +-C++ .cxx .cpp .cc -langauge=cxx ++C++ .cxx .cpp .cc \-langauge=cxx + .br + .C .hpp .H + .TP +-Java .java -language=java ++Java .java \-language=java + .TP +-Shell .sh -language=sh ++Shell .sh \-language=sh + .TP +-Perl .pl -language=perl ++Perl .pl \-language=perl + .TP +-Pascal .pas -language=pascal ++Pascal .pas \-language=pascal + .TP +-Verilog .v -language=v ++Verilog .v \-language=v + .TP +-Pseudo C .pc .ph -language=pseudoc ++Pseudo C .pc .ph \-language=pseudoc + .TP +-Report format .rep -language=report ++Report format .rep \-language=report + .TP +-Listing .lst -language=list ++Listing .lst \-language=list + .TP +-Plain Text default -language=text ++Plain Text default \-language=text + .PP + When Trueprint starts it uses four sets of options: + .PP +@@ -99,7 +99,7 @@ + usage. + .TP + .B \-t , \-\-language= +-treat input as language. Use --help=language for list. ++treat input as language. Use \-\-help=language for list. + .TP + .B \-U , \-\-username= + set username for coversheet +@@ -133,16 +133,16 @@ + \- languages + .br + .B prompt +-\- format for --print-pages string ++\- format for \-\-print-pages string + .br + .B debug +-\- format for --debug string ++\- format for \-\-debug string + .br + .B header + \- format for header & footer strings + .br + .B report +-\- file format for --language=report input ++\- file format for \-\-language=report input + .br + .B environment + \- environment vars used +@@ -179,7 +179,7 @@ + .TP + .B \-L , \-\-minimum\-line\-length= + minimum line length permitted by intelligent line wrap (default 10) +-.TP ++.TP + .B \-T , \-\-tabsize= + set tabsize (default 8) + .TP +@@ -371,8 +371,8 @@ + Each letter turns on a set of debugging messages, and the corresponding + digit indicates the level of messages, with 1 indicating the least + number of messags and 9 turning on all messages. The letter `@' can be +-used to turn on all areas, so `--debug=@9' will turn on all messages. +-Use `--help=debug' for details of what letters turn on what areas. ++used to turn on all areas, so `\-\-debug=@9' will turn on all messages. ++Use `\-\-help=debug' for details of what letters turn on what areas. + .br + Note that this feature is not uniformly implemented - messages were + only typically added where they were needed. Also note that messages +@@ -385,23 +385,23 @@ + option looks as follows: + .br + You specify the old version of the file or files with +-`--diff='. If suffixed with the current filename is a ++`\-\-diff='. If suffixed with the current filename is a + valid file then the differences between / are displayed. + Alternatively, if is a file and you're printing one file, then + the differences between and the current file are displayed. + Examples how to make it are shown below: + .IP +-trueprint --diff=../old- this.c that.c ++trueprint \-\-diff=../old- this.c that.c + .PP + will print the differences between ../old-this.c and this.c, and ../old-that.c + and that.c. + .IP +-trueprint --diff=../old/ this.c that.c ++trueprint \-\-diff=../old/ this.c that.c + .PP + will print the differences between ../old/this.c and this.c, and ../old/that.c + and that.c. Note that the trailing / is important. + .IP +-trueprint --diff=this.c that.c ++trueprint \-\-diff=this.c that.c + .PP + will print the differences between this.c and that.c. + .PP +@@ -422,12 +422,12 @@ + -- Print all pages that include function-name. + .br + .B `d' +--- Print all pages that have changed (this is only useful with the `--diff' ++-- Print all pages that have changed (this is only useful with the `\-\-diff' + (see above) option. + .br + .B `D' + -- Print all pages containing functions that have changed (this is only +-useful with the `--diff' (see above) option. ++useful with the `\-\-diff' (see above) option. + .br + .B `f' + -- Print the function index --- trueprint-5.3.orig/debian/prerm +++ trueprint-5.3/debian/prerm @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +# dummy empty prerm to cope with upgrades after install-info disappeared + +#DEBHELPER# --- trueprint-5.3.orig/debian/rules +++ trueprint-5.3/debian/rules @@ -0,0 +1,53 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +include /usr/share/dpatch/dpatch.make + +build: patch build-stamp +build-stamp: + dh_testdir + ./configure --prefix=/usr/share --exec-prefix=/usr --libdir=/etc/trueprint + $(MAKE) + touch build-stamp + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + if test -f Makefile; then $(MAKE) distclean; fi + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=`pwd`/debian/trueprint/ + $(RM) debian/trueprint/usr/share/info/dir + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installman + dh_installchangelogs + dh_installinfo + dh_link + dh_strip + dh_compress + dh_fixperms + dh_shlibdeps + dh_makeshlibs + dh_gencontrol + dh_installdeb + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- trueprint-5.3.orig/debian/watch +++ trueprint-5.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ftp.gnu.org/gnu/trueprint/trueprint-(.*)\.tar\.gz --- trueprint-5.3.orig/src/output.c +++ trueprint-5.3/src/output.c @@ -124,8 +124,11 @@ add_char(short position,char character,char_status status,char *line,char_status line_status[]) { - if (position >= MAXLINELENGTH) + if (position >= MAXLINELENGTH-1) + { fprintf(stderr, gettext(CMD_NAME ": line too long! Are you sure this is a program listing?\n")); + return; + } line[position] = character; line_status[position] = status; } @@ -206,6 +209,8 @@ /* * put a null at the end of the line */ + if (line_position >= MAXLINELENGTH-1) + line_position = MAXLINELENGTH-1; input_line[line_position] = 0; return(retval);