debian/0000755000000000000000000000000012217547267007203 5ustar debian/watch0000644000000000000000000000016012217547267010231 0ustar version=3 opts=uversionmangle=s/_/./g,dversionmangle=s/\+ds// \ http://web.uta4you.at/shop/td/ td_(.*)\.tar\.gz debian/control0000644000000000000000000000123512217547250010577 0ustar Source: textdraw Section: graphics Priority: optional Maintainer: Rene Engelhard Build-Depends: debhelper (>= 9), libncurses5-dev Standards-Version: 3.9.4 Package: textdraw Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tool to draw/modify/move geometric figures & text for ASCII art Textdraw (td) is a small utility that allows do draw (ASCII-based) line-, rectangle-, ellipse- and text-objects with copy/paste/move features. . It completes existing console-based software to a 'textbased only office' and offers a simple and easy way to draw ascii graphics for documentations, presentations, mails and much more. debian/compat0000644000000000000000000000000212217547250010371 0ustar 9 debian/rules0000755000000000000000000000076112217547250010257 0ustar #!/usr/bin/make -f override_dh_auto_build: gcc td.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -Wall -lncurses -lm -o td override_dh_auto_install: ln -sf td textdraw override_dh_install: dh_install td usr/bin dh_install textdraw usr/bin override_dh_installman: dh_installman debian/*.1 override_dh_link: dh_link usr/share/man/man1/td.1.gz usr/share/man/man1/textdraw.1.gz override_dh_installdocs: dh_installdocs readme help help.txt override_dh_clean: dh_clean td textdraw %: dh $@ debian/changelog0000644000000000000000000000523112217547250011046 0ustar textdraw (0.2+ds-0+nmu1) unstable; urgency=low [ Cyril Brulebois ] * Non-maintainer upload. * Switch to upstream tarball, using “ds” for “debian source” as a suffix since dak wouldn't appreciate different tarballs having the same name. * Add watch file. * Bump debhelper compat and build-dep to 8, add quilt, drop dbs (closes: #576039). * Switch patches from strip level 0 to strip level 1. * Rewrite debian/rules to just use dh and the quilt sequence. [ Robert Luberda ] * Prepare this NMU based on Cyril's version from #576039 in order to get rid of dbs build-dependency. Upload it to DELAYED/10. * Switch to the 3.0 (quilt) source format. * Repack the upstream tarball to remove pre-built binary from there. * Pass $(CPPFLAGS) and $(LDFLAGS) to gcc. * Bump Standards-Version to 3.9.4 and debhelper to v9. * Fix typos in man page (closes: #309886), and in the package description (closes: #624214). -- Robert Luberda Sun, 22 Sep 2013 12:11:53 +0200 textdraw (0.2-2) unstable; urgency=low * rename round() to rnd() (closes: #552850) * add ${misc:Depends} -- Rene Engelhard Sat, 03 Apr 2010 18:29:09 +0200 textdraw (0.2-1) unstable; urgency=low * new upstrem release (incorporating all patches contained in 0.1-x) -- Rene Engelhard Tue, 19 Nov 2002 14:08:40 +0100 textdraw (0.1-6) unstable; urgency=high * *argh*, typed in the patch manually and wrote l's as 1's and forgot to delete one line... Fixing that here... :-( -- Rene Engelhard Sun, 6 Oct 2002 09:21:02 +0200 textdraw (0.1-5) unstable; urgency=high * added patch from Anthony deRobertis which fixes loading of files and removed patch 02_char_in_fscanf which simply was wrong... (closes: #163304) -- Rene Engelhard Sun, 6 Oct 2002 08:55:26 +0200 textdraw (0.1-4) unstable; urgency=high * applied patch from Anthony DeRobertis which fixes error handling and enormous segfaults (closes: #162547) * removed dh_checkroot from debian/rules (closes: #162546) -- Rene Engelhard Fri, 27 Sep 2002 07:38:19 +0200 textdraw (0.1-3) unstable; urgency=low * fix typo in Description (closes: #159409) * bumped Standards-Version: to 3.5.7 -- Rene Engelhard Tue, 3 Sep 2002 12:36:53 +0200 textdraw (0.1-2) unstable; urgency=low * add forgotten Build-Depends: entry for dbs -- Rene Engelhard Sat, 24 Aug 2002 03:16:39 +0200 textdraw (0.1-1) unstable; urgency=low * Initial Release. (closes: #157154) -- Rene Engelhard Sun, 18 Aug 2002 23:09:20 +0200 debian/td.10000644000000000000000000000134012217547250007662 0ustar .TH td "1" "August 2002" "textdraw 0.1" "User Commands" .SH NAME td \- Program for drawing geometric figures with ASCII art .SH SYNOPSIS .B td [\fIfile\fR] .SH DESCRIPTION textdraw (td) is an easy to use program which you can use to draw geometric figures and text as ASCII Art and \fBmove\fR them around if you like to. .SS "Arguments:" .TP file File to load. This can be used to load a file created from textdraw which you had worked on and saved for further use. If textdraw is started without file argument, a file named 'new' is created in the current directory .SH AUTHOR This manual page was created newly by Rene Engelhard for the Debian GNU/Linux Distribution, because the original package does not have one. debian/patches/0000755000000000000000000000000012217535135010621 5ustar debian/patches/02_rename_round.diff0000644000000000000000000000645612217535135014445 0ustar --- a/td.c +++ b/td.c @@ -56,7 +56,7 @@ struct _buf_ buf; /* SUBPROGRAMS */ -int round(float x) // round function +int rnd(float x) // rnd function { if(x>=0) return trunc(x+0.5); else return trunc(x-0.5); } @@ -189,20 +189,20 @@ d=lin[i].y1-k*lin[i].x1; if(lin[i].x1ell[i].y2) for(j=ell[i].x1;j<=ell[i].x2;j++) { s=sqrt((1-(j-ell[i].x1-a)*(j-ell[i].x1-a)/a/a)*b*b); - chart[ell[i].y1-round(b-s)][j]='*'; - chart[ell[i].y1-round(b+s)][j]='*'; + chart[ell[i].y1-rnd(b-s)][j]='*'; + chart[ell[i].y1-rnd(b+s)][j]='*'; } else if(ell[i].x1>ell[i].x2 && ell[i].y1ell[i].y2) for(j=ell[i].y2;j<=ell[i].y1;j++) { s=sqrt((1-(j-ell[i].y2-b)*(j-ell[i].y2-b)/b/b)*a*a); - chart[j][ell[i].x1+round(a-s)]='*'; - chart[j][ell[i].x1+round(a+s)]='*'; + chart[j][ell[i].x1+rnd(a-s)]='*'; + chart[j][ell[i].x1+rnd(a+s)]='*'; } else if(ell[i].x1>ell[i].x2 && ell[i].y1 #include #include +#include #define trunc(x) ((int)(x)) debian/source/0000755000000000000000000000000012217547250010473 5ustar debian/source/format0000644000000000000000000000001412217547250011701 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000002712217547250012110 0ustar diff-ignore tar-ignore debian/copyright0000644000000000000000000000046012217535135011125 0ustar This package was debianized by Rene Engelhard on Sun, 18 Aug 2002 23:09:20 +0200. It was downloaded from http://web.uta4you.at/shop/td/ Upstream Author: shop@uta4you.at Copyright: GNU GPL, on Debian systems you can find the full text of the GPL under /usr/share/common-licenses/GPL