~ubuntu-branches/ubuntu/quantal/gutenprint/quantal

« back to all changes in this revision

Viewing changes to debian/ijsgutenprint-ppds.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2010-09-09 18:26:53 UTC
  • Revision ID: james.westby@ubuntu.com-20100909182653-8igh95yb8sl0f783
Tags: 5.2.6-0ubuntu4
* debian/patches/generic-large-format-printers.dpatch: Use "Large Format"
  instead of "LF" in the names of the Generic PCL printers, this way users
  understand better what the difference between the entries is.
* debian/ijsgutenprint-ppds.postinst, debian/foomatic-db-gutenprint.postinst:
  Made PPDs of existing print queues also get correctly updated if they are
  affected by the model name change introduced by the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        LC_ALL=C lpstat -h /var/run/cups/cups.sock -r | grep -v not > /dev/null 2>&1; then
34
34
        # Update the PPD files of all already installed print queues
35
35
        driverregexp='^ijsgutenprint-ppds:'
36
 
        gennicknameregexp='s/\.[\d\.]*$//'
 
36
        gennicknameregexp='s/\.[\d\.]*$//; s/ LF / Large Format /'
37
37
        [ ! -z "$gennicknameregexp" ] && \
38
38
            gennicknameregexp="; $gennicknameregexp"
39
39
        gennicknameregexp='s/\s*\(recommended\)//'"$gennicknameregexp"