]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/hpgl-prolog.c
Load cups into easysw/current.
[thirdparty/cups.git] / filter / hpgl-prolog.c
index f83c8f336650733ae57580ae76e742d909e3dc0e..00e512b7a9f18f7bddcb98a593e1121aed487949 100644 (file)
@@ -1,25 +1,16 @@
 /*
- * "$Id$"
+ * "$Id: hpgl-prolog.c 6649 2007-07-11 21:46:42Z mike $"
  *
  *   HP-GL/2 prolog routines for for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1993-2005 by Easy Software Products.
+ *   Copyright 2007 by Apple Inc.
+ *   Copyright 1993-2007 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636 USA
- *
- *       Voice: (301) 373-9600
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
+ *   property of Apple Inc. and are protected by Federal copyright
+ *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ *   which should have been included with this file.  If this file is
+ *   file is missing or damaged, see the license at "http://www.cups.org/".
  *
  *   This file is subject to the Apple OS-Developed Software exception.
  *
@@ -70,8 +61,8 @@ OutputProlog(char  *title,    /* I - Job title */
   puts("%%Creator: hpgltops/" CUPS_SVERSION);
   strftime(line, sizeof(line), "%c", curtm);
   printf("%%%%CreationDate: %s\n", line);
-  printf("%%%%Title: %s\n", title);
-  printf("%%%%For: %s\n", user);
+  WriteTextComment("Title", title);
+  WriteTextComment("For", user);
   printf("%%cupsRotation: %d\n", (Orientation & 3) * 90);
   puts("%%EndComments");
   puts("%%BeginProlog");
@@ -88,7 +79,8 @@ OutputProlog(char  *title,    /* I - Job title */
 
   if ((prolog = fopen(filename, "r")) == NULL)
   {
-    fprintf(stderr, "ERROR: Unable to open HPGL prolog \"%s\" for reading - %s\n",
+    fprintf(stderr,
+            "DEBUG: Unable to open HPGL prolog \"%s\" for reading - %s\n",
             filename, strerror(errno));
     exit(1);
   }
@@ -373,5 +365,5 @@ Outputf(const char *format, /* I - Printf-style string */
 
 
 /*
- * End of "$Id$".
+ * End of "$Id: hpgl-prolog.c 6649 2007-07-11 21:46:42Z mike $".
  */