Skip to content
Snippets Groups Projects
Commit 07094707 authored by Martin Mareš's avatar Martin Mareš
Browse files

Added texttopdf-auto filter

parent 924f8a60
No related branches found
No related tags found
No related merge requests found
SUBDIRS=xerox-acct xerox-xcpt
SUBDIRS=filters xerox-acct xerox-xcpt
.DEFAULT_GOAL := all
all clean install:
......
kam-printing (0.2) unstable; urgency=medium
* Added texttopdf-auto.
-- Martin Mares <mj@ucw.cz> Mon, 31 May 2021 15:35:25 +0200
kam-printing (0.1) unstable; urgency=medium
* Initial release.
......
......@@ -8,6 +8,6 @@ Vcs-Git: https://gitlab.kam.mff.cuni.cz/wizards/kam-printing
Package: kam-printing
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, enca
Description: KAM printer drivers
Printer drivers we use at KAM.
all:
clean:
install: all
install -d $(DESTDIR)/usr/lib/cups/filter $(DESTDIR)/usr/share/cups/mime
install -m 755 texttopdf-auto $(DESTDIR)/usr/lib/cups/filter/
install -m 644 kam-printing.convs $(DESTDIR)/usr/share/cups/mime/
.PHONY: all clean install
# Override conversions which originally used texttopdf (default cost = 32)
application/x-cshell application/pdf 31 texttopdf-auto
application/x-csource application/pdf 31 texttopdf-auto
application/x-perl application/pdf 31 texttopdf-auto
application/x-shell application/pdf 31 texttopdf-auto
text/plain application/pdf 31 texttopdf-auto
text/html application/pdf 31 texttopdf-auto
#!/bin/bash
if [ $# == 0 ]; then
echo >&2 "ERROR: $0 job-id user title copies options [file]"
exit 1
fi
{ if [ $# -ge 6 ]; then
cat $6
else
cat
fi; } |
enconv -x utf-8 -L czech |
/usr/lib/cups/filter/texttopdf "${@:1:5}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment