*
* PostScript command filter for CUPS.
*
- * Copyright 2008 by Apple Inc.
+ * Copyright 2008-2010 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
* Include necessary headers...
*/
-#include <cups/cups.h>
-#include <cups/string.h>
+#include <cups/cups-private.h>
+#include <cups/ppd.h>
#include <cups/sidechannel.h>
* and return.
*/
- fputs("ERROR: commandtops job-id user title copies options [file]\n", stderr);
+ _cupsLangPrintf(stderr,
+ _("Usage: %s job-id user title copies options file"),
+ argv[0]);
return (1);
}
static void
end_ps(ppd_file_t *ppd) /* I - PPD file */
{
- if (ppd->jcl_begin)
- fputs(ppd->jcl_begin, stdout);
+ if (ppd->jcl_end)
+ fputs(ppd->jcl_end, stdout);
else
putchar(0x04);