From f10f245015f67547e706f07f1e9340ccc72f313b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 15 Nov 2002 12:38:26 +0000 Subject: consolidate some stuff into printer::data::spoolers{XXX}{alternatives} so that all alternatives get centralized in one data structure --- perl-install/printer/data.pm | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'perl-install/printer/data.pm') diff --git a/perl-install/printer/data.pm b/perl-install/printer/data.pm index 2e20db2b5..f5230568b 100644 --- a/perl-install/printer/data.pm +++ b/perl-install/printer/data.pm @@ -16,23 +16,52 @@ our %spoolers = ('ppq' => { 'help' => "/usr/bin/lphelp %s |", 'print_command' => 'lpr-pdq', 'long_name' => N("PDQ - Print, Don't Queue"), - 'short_name' => N("PDQ") + 'short_name' => N("PDQ"), + 'alternatives' => [ + [ 'lpr', '/usr/bin/lpr-pdq' ], + [ 'lpq', '/usr/bin/lpq-foomatic' ], + [ 'lprm', '/usr/bin/lprm-foomatic' ] + ] }, 'lpd' => { 'help' => "/usr/bin/pdq -h -P %s 2>&1 |", 'print_command' => 'lpr', 'long_name' => N("LPD - Line Printer Daemon"), - 'short_name' => N("LPD") + 'short_name' => N("LPD"), + 'alternatives' => [ + [ 'lpr', '/usr/bin/lpr-lpd' ], + [ 'lpq', '/usr/bin/lpq-lpd' ], + [ 'lprm', '/usr/bin/lprm-lpd' ], + [ 'lpc', '/usr/sbin/lpc-lpd' ] + ] }, 'lprng' => { 'print_command' => 'lpr-lpd', 'long_name' => N("LPRng - LPR New Generation"), - 'short_name' => N("LPRng") + 'short_name' => N("LPRng"), + 'alternatives' => [ + [ 'lpr', '/usr/bin/lpr-lpd' ], + [ 'lpq', '/usr/bin/lpq-lpd' ], + [ 'lprm', '/usr/bin/lprm-lpd' ], + [ 'lp', '/usr/bin/lp-lpd' ], + [ 'cancel', '/usr/bin/cancel-lpd' ], + [ 'lpstat', '/usr/bin/lpstat-lpd' ], + [ 'lpc', '/usr/sbin/lpc-lpd' ] + ] }, 'cups' => { 'print_command' => 'lpr-cups', 'long_name' => N("CUPS - Common Unix Printing System"), - 'short_name' => N("CUPS") + 'short_name' => N("CUPS"), + 'alternatives' => [ + [ 'lpr', '/usr/bin/lpr-cups' ], + [ 'lpq', '/usr/bin/lpq-cups' ], + [ 'lprm', '/usr/bin/lprm-cups' ], + [ 'lp', '/usr/bin/lp-cups' ], + [ 'cancel', '/usr/bin/cancel-cups' ], + [ 'lpstat', '/usr/bin/lpstat-cups' ], + [ 'lpc', '/usr/sbin/lpc-cups' ] + ] } ); our %spooler_inv = map { $spoolers{$_}{long_name} => $_ } keys %spoolers; -- cgit v1.2.1