summaryrefslogtreecommitdiff
path: root/debian/printer-driver-gutenprint.ppd-updater
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-02-14 19:38:00 +0100
committerDidier Raboud <odyx@debian.org>2014-05-01 20:26:23 +0200
commitd2b3d9959c1cabb48387d6b44b68a96e74c6731e (patch)
tree8ea0079b5cb2745fb8db299f579192ccec0ad409 /debian/printer-driver-gutenprint.ppd-updater
parent70207ee8bb6297469649494dab631e54ea702097 (diff)
Replace the printer-driver-gutenprint postinst with a ppd-updater trigger
Update the PPD files of all already existing print queues using this driver when updating this package. In contrary to Gutenprint's own cups-genppdupdate, the script of the cups package can also migrate PPD files. In our case we migrate Foomatic/IJS PPD files to the equivalent PPDs using the CUPS Raster driver of Gutenprint and we replace simplified PPD files by the corresponding standard PPDs, as we discontinue the simplified PPDs in Ubuntu to reduce the delta to Debian and to make printer model/driver listings in printer setup tools less cluttered. Git-Dch: Full
Diffstat (limited to 'debian/printer-driver-gutenprint.ppd-updater')
-rw-r--r--debian/printer-driver-gutenprint.ppd-updater2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/printer-driver-gutenprint.ppd-updater b/debian/printer-driver-gutenprint.ppd-updater
new file mode 100644
index 0000000..21834cc
--- /dev/null
+++ b/debian/printer-driver-gutenprint.ppd-updater
@@ -0,0 +1,2 @@
+DRIVER_REGEXP='^gutenprint'
+GENNICKNAME_REGEXP='s/ LF / Large Format /; s/-simplified//; s/\s*Simplified//; s/\s+Foomatic\/gutenprint-ijs/ - CUPS+Gutenprint/i; s/\s*v[\d\.]*(|-pre\d+)\s*$//; s/\.[\d\.]*(|-pre\d+)\s*$//'