3 XCOMM $XConsortium: dtlpsetup.src /main/3 1996/04/23 12:01:59 drk $
5 XCOMM COMPONENT_NAME: desktop
7 XCOMM FUNCTIONS: dtlpsetup
11 XCOMM (C) COPYRIGHT International Business Machines Corp. 1995
12 XCOMM All Rights Reserved
13 XCOMM US Government Users Restricted Rights - Use, duplication or
14 XCOMM disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
17 XCOMM Add /usr/dt/lib/nls/msg/%L/%N.cat to NLSPATH
20 NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat:$NLSPATH
27 usage="$0 [-b banner_title] [-d lpdest] [-f print_file]
28 [-m print_command] [-n copy_count] [-o other_options]
29 [-u user_filename] [-a] [-e] [-h] [-r] [-s] [-v] [-w]"
31 while [ $# -gt 0 ]; do
43 banner_title="-b `expr "$1" : '-b\(.*\)'`"
56 lpdest="-d `expr "$1" : '-d\(.*\)'`"
125 print_file=`expr "$1" : '-f\(.*\)'`
130 print_command="$1 $2"
138 print_command="-m `expr "$1" : '-m\(.*\)'`"
151 copy_count="-n `expr "$1" : '-n\(.*\)'`"
156 other_options="$1 $2"
164 other_options="-o `expr "$1" : '-o\(.*\)'`"
169 user_filename="$1 $2"
177 user_filename="-u `expr "$1" : '-u\(.*\)'`"
214 if [ $# -gt 0 ]; then
219 if [ $NOT_SUPPORTED ]; then
220 dspmsg -s 1 dtmigrate 2 'dtlpsetup: dtlpsetup has been replaced with dtlp.\
221 \tdtlp will be automatically called in its place. \
222 \tThe following flags and parameters on the dtlpsetup call \
223 \thave been ignored because dtlp does not support these flags: \
227 /usr/dt/bin/dtlp $banner_title $lpdest $print_command $copy_count $other_options $user_filename $a $e $h $r $s $v $w $print_file
231 XCOMM dtlp return code of 5 maps to return code 7 of dtlpsetup
232 if [[ $status -eq 5 ]]
233 then exit NO_VALID_FILE_ERR
234 XCOMM dtlp return code of 6 maps to return code 8 of dtlpsetup
235 elif [[ $status -eq 6 ]]
236 then exit NO_READ_FILE_ERR
238 XCOMM all others are synonomous