Codebase list c2050 / 6238f25
Imported Debian patch 0.3-6 Marco Nenciarini authored 18 years ago Marco Nenciarini committed 12 years ago
13 changed file(s) with 263 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
00 #
11 # makefile - simple makefile for the Lexmark 2050 color driver
22 #
3 # Copyright 1999, Christian Kornblum
3 # Copyright 2001, Marco Nenciarini
44 #
55 #
66
3838
3939 #install the driver
4040 install: all
41 cp c2050 /usr/bin
42 chmod a+x /usr/bin/c2050
43 cp ps2lexmark /usr/bin
44 chmod a+x /usr/bin/ps2lexmark
41 install -m 0755 c2050 $(DESTDIR)/usr/bin
42 install -m 0755 ps2lexmark $(DESTDIR)/usr/bin
33 *
44 * Author: Marco Nenciarini
55 *
6 * Version: 0.1, 27.09.2000
6 * Version: 0.3, 7.10.2000
77 *
88 * License: GPL (GNU Public License)
99 *
166166 /*
167167 * This finds out if there is anything but zeros in a string
168168 */
169 int LineSum(char line[], int length)
169 int LineSum(signed char line[], int length)
170170 {
171171 register i = 0;
172172 while (i < length)
178178 * This is the main printing routine. Wicked and insane. Nonetheless working.
179179 */
180180 void LexPrint(FILE *in, FILE *out) {
181 char line[GS_PAGE_WIDTH / 2];
181 signed char line[GS_PAGE_WIDTH / 2];
182182 int done_page, cur_height = 0, page_height = 0, numpages = 0;
183183 char lex_blkhd[BYTES_PER_HEADER] = {0x1b,0x2a,0x04,0xff,0xff,0x00,0x01,
184184 0x00,0x01,0x06,0x31,0xff,0xff,0xff,0xff,
194194 int CurrentColBuffer = 0;
195195 int blkwidth, colwidth;
196196 int empty_lines, skipcolors;
197 char nibble;
197 signed char nibble;
198198 int yellowcounter = 0;
199199
200200 /* The printer may not be able to print every GhostScript pixel */
0 .\" Hey, EMACS: -*- nroff -*-
1 .\" First parameter, NAME, should be all caps
2 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
3 .\" other parameters are allowed: see man(7), man(1)
4 .TH C2050 1 "March 14, 2001"
5 .\" Please adjust this date whenever revising the manpage.
6 .\"
7 .\" Some roff macros, for reference:
8 .\" .nh disable hyphenation
9 .\" .hy enable hyphenation
10 .\" .ad l left justify
11 .\" .ad b justify to both left and right margins
12 .\" .nf disable filling
13 .\" .fi enable filling
14 .\" .br insert line break
15 .\" .sp <n> insert n+1 empty lines
16 .\" for manpage-specific macros, see man(7)
17 .SH NAME
18 c2050 \- Ghostscript bitcymk to Lexmark 2050 Series protocol translator
19 .SH SYNOPSIS
20 .B c2050
21 .SH DESCRIPTION
22 .\" TeX users may be more comfortable with the \fB<whatever>\fP and
23 .\" \fI<whatever>\fP escape sequences to invode bold face and italics,
24 .\" respectively.
25 \fBc2050\fP is a program that filters GhostScript output to the Lexmark
26 2050 Series protocol. The input format is bitcmyk. The driver simply reads
27 the standard input, converts it and then sends the data to the standard
28 output.
29 .SH OPTIONS
30 This program have no options.
31 .SH SEE ALSO
32 .BR ps2lexmark (1),
33 .BR gs (1).
34 .SH AUTHOR
35 This manual page was written by Marco Nenciarini <mnencia@prato.linux.it>.
0 debian/c2050.1
1 debian/ps2lexmark.1
0 c2050 (0.3-6) unstable; urgency=low
1
2 * Bumped standards version.
3 * Changed download url in copyright file
4
5 -- Marco Nenciarini <mnencia@debian.org> Wed, 22 Jun 2005 12:28:42 +0200
6
7 c2050 (0.3-5) unstable; urgency=low
8
9 * Closes: #302953: Improper copyright file
10
11 -- Marco Nenciarini <mnencia@debian.org> Fri, 17 Jun 2005 18:49:41 +0200
12
13 c2050 (0.3-4) unstable; urgency=low
14
15 * Changed the description of package (Closes: #133960)
16
17 -- Marco Nenciarini <mnencia@debian.org> Tue, 5 Mar 2002 13:51:24 +0100
18
19 c2050 (0.3-3) unstable; urgency=low
20
21 * Changed the type of some variables from 'char' to 'signed char' to make
22 it working on arm, powerpc and s390.
23
24 -- Marco Nenciarini <mnencia@debian.org> Mon, 14 Jan 2002 15:09:00 +0000
25
26 c2050 (0.3-2) unstable; urgency=low
27
28 * Changed priority from optional to extra.
29 * Added gs check to ps2lexmark script.
30
31 -- Marco Nenciarini <mnencia@debian.org> Fri, 13 Apr 2001 09:51:53 +0000
32
33 c2050 (0.3-1) unstable; urgency=low
34
35 * Initial Release. (Closes: #91765)
36
37 -- Marco Nenciarini <mnencia@debian.org> Fri, 9 Mar 2001 20:08:29 +0100
38
39 Local variables:
40 mode: debian-changelog
41 End:
0 Source: c2050
1 Section: admin
2 Priority: extra
3 Maintainer: Marco Nenciarini <mnencia@debian.org>
4 Build-Depends: debhelper (>> 4.0.0)
5 Standards-Version: 3.6.2
6
7 Package: c2050
8 Architecture: any
9 Depends: ${shlibs:Depends}, gs
10 Suggests: a2ps
11 Description: Lexmark 2050 Color Jetprinter Linux Driver
12 Filter to convert a Postscript file to Lexmark 2050 format.
13 .
14 This driver allow you to print at 300dpi in color on A4 paper.
0 This package was debianized by Marco Nenciarini <mnencia@debian.org> on
1 Fri, 9 Mar 2001 20:08:29 +0100.
2
3 It was downloaded from http://www.prato.linux.it/~mnencia/lexmark2050/files/
4
5 Copyright Holder: Marco Nenciarini <mnencia@prato.linux.it>
6
7 License:
8
9 This package is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 dated June, 1991.
12
13 This package is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this package; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 02111-1307, USA.
22
23 On Debian GNU/Linux systems, the complete text of the GNU General
24 Public License can be found in `/usr/share/common-licenses/GPL'.
0 .\" Hey, EMACS: -*- nroff -*-
1 .\" First parameter, NAME, should be all caps
2 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
3 .\" other parameters are allowed: see man(7), man(1)
4 .TH C2050 1 "March 14, 2001"
5 .\" Please adjust this date whenever revising the manpage.
6 .\"
7 .\" Some roff macros, for reference:
8 .\" .nh disable hyphenation
9 .\" .hy enable hyphenation
10 .\" .ad l left justify
11 .\" .ad b justify to both left and right margins
12 .\" .nf disable filling
13 .\" .fi enable filling
14 .\" .br insert line break
15 .\" .sp <n> insert n+1 empty lines
16 .\" for manpage-specific macros, see man(7)
17 .SH NAME
18 ps2lexmark \- Postscript to Lexmark 2050 Series protocol translator
19 .SH SYNOPSIS
20 .B ps2lexmark
21 .SH DESCRIPTION
22 .\" TeX users may be more comfortable with the \fB<whatever>\fP and
23 .\" \fI<whatever>\fP escape sequences to invode bold face and italics,
24 .\" respectively.
25 \fBps2lexmark\fP is a script that translate a postscript file to the Lexmark
26 2050 Series protocol. The script simply reads the standard input, converts
27 it and then sends the data to the standard output.
28 \fBps2lexmark\fP uses gs(1) and c2050(1) driver.
29 .SH OPTIONS
30 This program have no options.
31 .SH SEE ALSO
32 .BR c2050 (1),
33 .BR gs (1).
34 .SH AUTHOR
35 This manual page was written by Marco Nenciarini <mnencia@prato.linux.it>.
0 #!/usr/bin/make -f
1 # Sample debian/rules that uses debhelper.
2 # GNU copyright 1997 to 1999 by Joey Hess.
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 configure: configure-stamp
8 configure-stamp:
9 dh_testdir
10 # Add here commands to configure the package.
11
12
13 touch configure-stamp
14
15 build: configure-stamp build-stamp
16 build-stamp:
17 dh_testdir
18
19 # Add here commands to compile the package.
20 $(MAKE)
21 #/usr/bin/docbook-to-man debian/c2050.sgml > c2050.1
22
23 touch build-stamp
24
25 clean:
26 dh_testdir
27 dh_testroot
28 rm -f build-stamp configure-stamp
29
30 # Add here commands to clean up after the build process.
31 -$(MAKE) clean
32
33 dh_clean
34
35 install: build
36 dh_testdir
37 dh_testroot
38 dh_clean -k
39 dh_installdirs
40
41 # Add here commands to install the package into debian/c2050.
42 $(MAKE) install DESTDIR=$(CURDIR)/debian/c2050
43
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47 # We have nothing to do by default.
48
49 # Build architecture-dependent files here.
50 binary-arch: build install
51 # dh_testversion 2
52 dh_testdir
53 dh_testroot
54 # dh_installdebconf
55 dh_installdocs
56 # dh_installexamples
57 # dh_installmenu
58 # dh_installemacsen
59 # dh_installpam
60 # dh_installinit
61 # dh_installcron
62 dh_installman
63 # dh_installinfo
64 # dh_undocumented
65 dh_installchangelogs
66 # dh_link
67 dh_strip
68 dh_compress
69 dh_fixperms
70 # # You may want to make some executables suid here.
71 # dh_suidregister
72 # dh_makeshlibs
73 dh_installdeb
74 # dh_perl
75 dh_shlibdeps
76 dh_gencontrol
77 dh_md5sums
78 dh_builddeb
79
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary install configure
00 #!/bin/sh
1 gs -q -sDEVICE=bitcmyk \
2 -r300 \
3 -dDITHERPPI=150 \
4 -dNOPAUSE \
5 -dSAFER \
6 -dBATCH \
7 -sOutputFile=\|c2050 \
8 -
1
2 if [ -x /usr/bin/gs ]
3 then
4 gs -q -sDEVICE=bitcmyk \
5 -r300 \
6 -dDITHERPPI=150 \
7 -sPAPERSIZE=a4 \
8 -dNOPAUSE \
9 -dSAFER \
10 -dBATCH \
11 -sOutputFile=\|c2050 \
12 -
13 else
14 echo "You must have gs to use this script." > /dev/stderr
15 fi