summaryrefslogtreecommitdiff
path: root/systemv
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2011-03-23 00:05:29 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2011-03-23 00:05:29 +0000
commit84315f460a5c9eb38f7fcc4204acf98ed2b29406 (patch)
tree13135924a24fee3f340569f7cd39e00d087dced9 /systemv
parent82f972324ddde683be8a6d302f9937532ab0cf81 (diff)
Merge changes from CUPS 1.5svn-r9641
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@3071 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv')
-rw-r--r--systemv/cancel.c4
-rw-r--r--systemv/cupsaddsmb.c19
-rw-r--r--systemv/cupsctl.c18
-rw-r--r--systemv/cupstestppd.c117
-rw-r--r--systemv/lp.c4
5 files changed, 82 insertions, 80 deletions
diff --git a/systemv/cancel.c b/systemv/cancel.c
index 8d655b01b..2b5be210f 100644
--- a/systemv/cancel.c
+++ b/systemv/cancel.c
@@ -3,7 +3,7 @@
*
* "cancel" command for CUPS.
*
- * Copyright 2007-2010 by Apple Inc.
+ * Copyright 2007-2011 by Apple Inc.
* Copyright 1997-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
@@ -234,7 +234,7 @@ main(int argc, /* I - Number of command-line arguments */
cupsEncryption())) == NULL)
{
_cupsLangPrintf(stderr,
- _("%s: Unable to contact server."), argv[0]);
+ _("%s: Unable to connect to server."), argv[0]);
return (1);
}
diff --git a/systemv/cupsaddsmb.c b/systemv/cupsaddsmb.c
index 76204fd2c..18dc8df25 100644
--- a/systemv/cupsaddsmb.c
+++ b/systemv/cupsaddsmb.c
@@ -3,7 +3,7 @@
*
* "cupsaddsmb" command for CUPS.
*
- * Copyright 2007-2010 by Apple Inc.
+ * Copyright 2007-2011 by Apple Inc.
* Copyright 2001-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
@@ -282,14 +282,17 @@ usage(void)
_cupsLangPuts(stdout, _(" cupsaddsmb [options] -a"));
_cupsLangPuts(stdout, "");
_cupsLangPuts(stdout, _("Options:"));
- _cupsLangPuts(stdout, _(" -E Encrypt the connection to the "
+ _cupsLangPuts(stdout, _(" -E Encrypt the connection to "
+ "the server."));
+ _cupsLangPuts(stdout, _(" -H samba-server Use the named SAMBA "
"server."));
- _cupsLangPuts(stdout, _(" -H samba-server Use the named SAMBA server."));
- _cupsLangPuts(stdout, _(" -U samba-user Authenticate using the named "
- "SAMBA user."));
- _cupsLangPuts(stdout, _(" -a Export all printers."));
- _cupsLangPuts(stdout, _(" -h cups-server Use the named CUPS server."));
- _cupsLangPuts(stdout, _(" -v Be verbose (show commands)."));
+ _cupsLangPuts(stdout, _(" -U samba-user Authenticate using the "
+ "named SAMBA user."));
+ _cupsLangPuts(stdout, _(" -a Export all printers."));
+ _cupsLangPuts(stdout, _(" -h cups-server Use the named CUPS "
+ "server."));
+ _cupsLangPuts(stdout, _(" -v Be verbose (show "
+ "commands)."));
exit(1);
}
diff --git a/systemv/cupsctl.c b/systemv/cupsctl.c
index cae46d697..eabc6e479 100644
--- a/systemv/cupsctl.c
+++ b/systemv/cupsctl.c
@@ -208,22 +208,22 @@ usage(const char *opt) /* I - Option character/string */
_cupsLangPuts(stdout, "");
_cupsLangPuts(stdout, _("Options:"));
_cupsLangPuts(stdout, "");
- _cupsLangPuts(stdout, _(" -E Enable encryption."));
- _cupsLangPuts(stdout, _(" -U username Specify username."));
- _cupsLangPuts(stdout, _(" -h server[:port] Specify server "
+ _cupsLangPuts(stdout, _(" -E Enable encryption."));
+ _cupsLangPuts(stdout, _(" -U username Specify username."));
+ _cupsLangPuts(stdout, _(" -h server[:port] Specify server "
"address."));
_cupsLangPuts(stdout, "");
- _cupsLangPuts(stdout, _(" --[no-]debug-logging Turn debug logging "
+ _cupsLangPuts(stdout, _(" --[no-]debug-logging Turn debug logging "
"on/off."));
- _cupsLangPuts(stdout, _(" --[no-]remote-admin Turn remote "
+ _cupsLangPuts(stdout, _(" --[no-]remote-admin Turn remote "
"administration on/off."));
- _cupsLangPuts(stdout, _(" --[no-]remote-any Allow/prevent access "
+ _cupsLangPuts(stdout, _(" --[no-]remote-any Allow/prevent access "
"from the Internet."));
- _cupsLangPuts(stdout, _(" --[no-]remote-printers Show/hide remote "
+ _cupsLangPuts(stdout, _(" --[no-]remote-printers Show/hide remote "
"printers."));
- _cupsLangPuts(stdout, _(" --[no-]share-printers Turn printer sharing "
+ _cupsLangPuts(stdout, _(" --[no-]share-printers Turn printer sharing "
"on/off."));
- _cupsLangPuts(stdout, _(" --[no-]user-cancel-any Allow/prevent users to "
+ _cupsLangPuts(stdout, _(" --[no-]user-cancel-any Allow/prevent users to "
"cancel any job."));
exit(1);
diff --git a/systemv/cupstestppd.c b/systemv/cupstestppd.c
index 22f7ce496..55ebb0f40 100644
--- a/systemv/cupstestppd.c
+++ b/systemv/cupstestppd.c
@@ -3,7 +3,7 @@
*
* PPD test program for CUPS.
*
- * Copyright 2007-2010 by Apple Inc.
+ * Copyright 2007-2011 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
@@ -329,20 +329,22 @@ main(int argc, /* I - Number of command-line args */
status = ERROR_FILE_OPEN;
if (verbose >= 0)
+ {
+ _cupsLangPuts(stdout, _(" FAIL"));
_cupsLangPrintf(stdout,
- _(" FAIL"
- " **FAIL** Unable to open PPD file - %s"),
+ _(" **FAIL** Unable to open PPD file - %s"),
strerror(errno));
+ }
}
else
{
status = ERROR_PPD_FORMAT;
if (verbose >= 0)
- {
+ {
+ _cupsLangPuts(stdout, _(" FAIL"));
_cupsLangPrintf(stdout,
- _(" FAIL"
- " **FAIL** Unable to open PPD file - "
+ _(" **FAIL** Unable to open PPD file - "
"%s on line %d."),
ppdErrorString(error), line);
@@ -2352,8 +2354,8 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing cupsFilter "
- "file \"%s\"."), prefix, pathprog);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "cupsFilter", pathprog);
if (!warn)
errors ++;
@@ -2366,8 +2368,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on cupsFilter "
- "file \"%s\"."), prefix, pathprog);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "cupsFilter", pathprog);
if (!warn)
errors ++;
@@ -2437,8 +2440,8 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing cupsPreFilter "
- "file \"%s\"."), prefix, pathprog);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "cupsPreFilter", pathprog);
if (!warn)
errors ++;
@@ -2451,9 +2454,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "cupsPreFilter file \"%s\"."), prefix,
- pathprog);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "cupsPreFilter", pathprog);
if (!warn)
errors ++;
@@ -2495,9 +2498,8 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing "
- "APDialogExtension file \"%s\"."),
- prefix, pathprog);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "APDialogExtension", pathprog);
if (!warn)
errors ++;
@@ -2510,9 +2512,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "APDialogExtension file \"%s\"."), prefix,
- pathprog);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "APDialogExtension", pathprog);
if (!warn)
errors ++;
@@ -2551,9 +2553,8 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing "
- "APPrinterIconPath file \"%s\"."),
- prefix, pathprog);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "APPrinterIconPath", pathprog);
if (!warn)
errors ++;
@@ -2566,9 +2567,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "APPrinterIconPath file \"%s\"."), prefix,
- pathprog);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "APPrinterIconPath", pathprog);
if (!warn)
errors ++;
@@ -2607,9 +2608,8 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing "
- "APPrinterLowInkTool file \"%s\"."),
- prefix, pathprog);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "APPrinterLowInkTool", pathprog);
if (!warn)
errors ++;
@@ -2622,9 +2622,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "APPrinterLowInkTool file \"%s\"."), prefix,
- pathprog);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "APPrinterLowInkTool", pathprog);
if (!warn)
errors ++;
@@ -2663,9 +2663,8 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing "
- "APPrinterUtilityPath file \"%s\"."),
- prefix, pathprog);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "APPrinterUtilityPath", pathprog);
if (!warn)
errors ++;
@@ -2678,9 +2677,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "APPrinterUtilityPath file \"%s\"."), prefix,
- pathprog);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "APPrinterUtilityPath", pathprog);
if (!warn)
errors ++;
@@ -2716,9 +2715,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing "
- "APScanAppPath file \"%s\"."),
- prefix, attr->value ? attr->value : "<NULL>");
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "APScanAppPath",
+ attr->value ? attr->value : "<NULL>");
if (!warn)
errors ++;
@@ -2731,9 +2730,9 @@ check_filters(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "APScanAppPath file \"%s\"."), prefix,
- attr->value);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "APScanAppPath", attr->value);
if (!warn)
errors ++;
@@ -2839,8 +2838,8 @@ check_profiles(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Missing cupsICCProfile "
- "file \"%s\"."), prefix, filename);
+ _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."),
+ prefix, "cupsICCProfile", filename);
if (!warn)
errors ++;
@@ -2853,9 +2852,9 @@ check_profiles(ppd_file_t *ppd, /* I - PPD file */
_cupsLangPuts(stdout, _(" FAIL"));
if (verbose >= 0)
- _cupsLangPrintf(stdout, _(" %s Bad permissions on "
- "cupsICCProfile file \"%s\"."), prefix,
- filename);
+ _cupsLangPrintf(stdout,
+ _(" %s Bad permissions on %s file \"%s\"."),
+ prefix, "cupsICCProfile", filename);
if (!warn)
errors ++;
@@ -3490,17 +3489,17 @@ usage(void)
_cupsLangPuts(stdout, "");
_cupsLangPuts(stdout, _("Options:"));
_cupsLangPuts(stdout, "");
- _cupsLangPuts(stdout, _(" -I {filename,filters,none,profiles}"));
- _cupsLangPuts(stdout, _(" Ignore specific warnings."));
- _cupsLangPuts(stdout, _(" -R root-directory Set alternate root."));
- _cupsLangPuts(stdout, _(" -W {all,none,constraints,defaults,duplex,"
+ _cupsLangPuts(stdout, _(" -I {filename,filters,none,profiles}"));
+ _cupsLangPuts(stdout, _(" Ignore specific warnings."));
+ _cupsLangPuts(stdout, _(" -R root-directory Set alternate root."));
+ _cupsLangPuts(stdout, _(" -W {all,none,constraints,defaults,duplex,"
"filters,profiles,sizes,translations}"));
- _cupsLangPuts(stdout, _(" Issue warnings instead of "
+ _cupsLangPuts(stdout, _(" Issue warnings instead of "
"errors."));
- _cupsLangPuts(stdout, _(" -q Run silently."));
- _cupsLangPuts(stdout, _(" -r Use 'relaxed' open mode."));
- _cupsLangPuts(stdout, _(" -v Be slightly verbose."));
- _cupsLangPuts(stdout, _(" -vv Be very verbose."));
+ _cupsLangPuts(stdout, _(" -q Run silently."));
+ _cupsLangPuts(stdout, _(" -r Use 'relaxed' open mode."));
+ _cupsLangPuts(stdout, _(" -v Be slightly verbose."));
+ _cupsLangPuts(stdout, _(" -vv Be very verbose."));
exit(ERROR_USAGE);
}
diff --git a/systemv/lp.c b/systemv/lp.c
index 744a13acf..dcfab2413 100644
--- a/systemv/lp.c
+++ b/systemv/lp.c
@@ -3,7 +3,7 @@
*
* "lp" command for CUPS.
*
- * Copyright 2007-2010 by Apple Inc.
+ * Copyright 2007-2011 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
@@ -285,7 +285,7 @@ main(int argc, /* I - Number of command-line arguments */
if (i >= argc)
{
_cupsLangPrintf(stderr,
- _("%s: Error - expected option string after "
+ _("%s: Error - expected option=value after "
"\"-o\" option."), argv[0]);
return (1);
}