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

« back to all changes in this revision

Viewing changes to src/cups/genppd.c

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-06-19 17:12:48 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120619171248-cbil10m2dqnc71rr
Tags: 5.2.8-0ubuntu1
* New upstream release
   - Added support for Canon PIXMA DS700, DS810, 50i, 80i, 450i, 455i, 470PD,
     475PD, 550i, 560i, 850i, 860i, 865R, 900PD, 950i, 960i, 990i, 6100i,
     6500i, 9100i, 9900i, i450X, i455X, i475D, i550X, i560X, i905D, i965,
     i990, i9950, iP90, iP90v, iP100, iP6320D, MP260, MX320, MX370, MX430,
     MX510, MX710, MX890, E500, E600, PIXUS iP2700, iP3100, iP4100,
     EPSON Stylus NX420, SX420, TX420
   - CD printing on many Canon printers.
   - Non-working Canon's removed.
   - More Japanese models supported.
   - Printer modes for most printer models are now determined by the
     media, based on information from the corresponding Windows
     driver. If an incompatible mode is selected by the user, a
     suitable mode is substituted, based on the other active
     parameters and quality setting. Modes are also substituted
     based on cartridge selection and duplex selection. Inktype is
     then automatically adjusted.
   - Added support for 8-bit inks to Canon backend, and modes using
     them.
   - Adjusted margins and page sizes of Canon printers.
   - Added borderless functionality to most Canon printers.
   - A problem whereby printing did not work at all on some Linux
     distributions has been fixed.
   - Printing on the Epson Stylus NX200, SX200, and SX205 is believed
     to be corrected.
* debian/patches/0002-genppd-don-t-write-color-profile-information-with-br.patch,
  debian/patches/0003-upgrade-getopt.patch,
  debian/patches/0004-no-data-dumper-needed.patch,
  debian/patches/0005-use-dnointerpolate-in-ghostscript-command-lines.patch:
  Removed, change applied upstream.
* debian/rules: Touch ppd-updater file(s) so that they have the time stamp
  of the build of this package The time stamp of the ppd-updater files tells
  CUPS' trigger script whether they come from different package versions or
  not (LP: #932882).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: genppd.c,v 1.188 2011/12/18 00:55:16 rlk Exp $"
 
2
 * "$Id: genppd.c,v 1.192 2012/03/25 17:54:32 rlk Exp $"
3
3
 *
4
4
 *   PPD file generation program for the CUPS drivers.
5
5
 *
81
81
 
82
82
#include "i18n.h"
83
83
 
 
84
static int use_base_version = 0;
 
85
 
84
86
/*
85
87
 * Some applications use the XxYdpi tags rather than the actual
86
88
 * hardware resolutions to decide what resolution to print at.  Some
249
251
    {
250
252
      char buf[1024];
251
253
      int status = 0;
252
 
      while (status == 0 && fgets(buf, sizeof(buf) - 1, stdin))
 
254
      while (fgets(buf, sizeof(buf) - 1, stdin))
253
255
        {
254
256
          size_t len = strlen(buf);
255
257
          if (len == 0)
256
258
            continue;
257
259
          if (buf[len - 1] == '\n')
258
260
            buf[len - 1] = '\0';
259
 
          status = cat_ppd(buf);
 
261
          status |= cat_ppd(buf);
260
262
          fputs("*%*%EOFEOF\n", stdout);
261
263
          (void) fflush(stdout);
262
264
        }
263
 
      return status;
264
265
    }
265
266
  else if (argc == 2 && !strcmp(argv[1], "VERSION"))
266
267
    {
273
274
      return (0);
274
275
    }
275
276
  else
276
 
  {
277
 
    fprintf(stderr, "Usage: %s list\n", argv[0]);
278
 
    fprintf(stderr, "       %s cat URI\n", argv[0]);
279
 
    return (1);
280
 
  }
 
277
    {
 
278
      fprintf(stderr, "Usage: %s list\n", argv[0]);
 
279
      fprintf(stderr, "       %s cat URI\n", argv[0]);
 
280
      return (1);
 
281
    }
 
282
  return (0);
281
283
}
282
284
 
283
285
 
457
459
 
458
460
  for (;;)
459
461
  {
460
 
    if ((i = getopt(argc, argv, "23hvqc:p:l:LMVd:saNC")) == -1)
 
462
    if ((i = getopt(argc, argv, "23hvqc:p:l:LMVd:saNCb")) == -1)
461
463
      break;
462
464
 
463
465
    switch (i)
528
530
           "GNU General Public License for more details.\n");
529
531
      exit(EXIT_SUCCESS);
530
532
      break;
 
533
    case 'b':
 
534
      use_base_version = 1;
 
535
      break;
531
536
    default:
532
537
      usage();
533
538
      exit(EXIT_FAILURE);
944
949
  gzputs(fp, "*% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n");
945
950
  gzputs(fp, "*%\n");
946
951
  gzputs(fp, "*FormatVersion:   \"4.3\"\n");
947
 
  gzputs(fp, "*FileVersion:     \"" VERSION "\"\n");
 
952
  if (use_base_version)
 
953
    gzputs(fp, "*FileVersion:   \"" BASE_VERSION "\"\n");
 
954
  else
 
955
    gzputs(fp, "*FileVersion:   \"" VERSION "\"\n");
948
956
  /* Specify language of PPD translation */
949
957
  /* TRANSLATORS: Specify the language of the PPD translation.
950
958
   * Use the English name of your language here, e.g. "Swedish" instead of
1868
1876
                   manufacturer, device_id, ppd_location, language, po,
1869
1877
                   all_langs);
1870
1878
 
1871
 
#if 0
1872
1879
  /* Macintosh color management */
1873
1880
 
 
1881
#ifdef __APPLE__
1874
1882
  gzputs(fp, "*cupsICCProfile Gray../Grayscale: \"/System/Library/ColorSync/Profiles/sRGB Profile.icc\"\n");
1875
1883
  gzputs(fp, "*cupsICCProfile RGB../Color:      \"/System/Library/ColorSync/Profiles/sRGB Profile.icc\"\n");
1876
1884
  gzputs(fp, "*cupsICCProfile CMYK../Color:     \"/System/Library/ColorSync/Profiles/Generic CMYK Profile.icc\"\n");
2155
2163
        }
2156
2164
 
2157
2165
      stp_string_list_destroy(res_list);
 
2166
      stp_clear_string_parameter(v, "Resolution");
2158
2167
      gzputs(fp, "*CloseUI: *Resolution\n\n");
2159
2168
    }
2160
2169
 
2561
2570
 
2562
2571
 
2563
2572
/*
2564
 
 * End of "$Id: genppd.c,v 1.188 2011/12/18 00:55:16 rlk Exp $".
 
2573
 * End of "$Id: genppd.c,v 1.192 2012/03/25 17:54:32 rlk Exp $".
2565
2574
 */