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
23 usage="$0 [-b banner_title] [-d lpdest] [-f print_file]
24 [-m print_command] [-n copy_count] [-o other_options]
25 [-u user_filename] [-a] [-e] [-h] [-r] [-s] [-v] [-w]"
27 while [ $# -gt 0 ]; do
39 banner_title="-b $(expr "$1" : '-b\(.*\)')"
52 lpdest="-d $(expr "$1" : '-d\(.*\)')"
121 print_file=$(expr "$1" : '-f\(.*\)')
126 print_command="$1 $2"
134 print_command="-m $(expr "$1" : '-m\(.*\)')"
147 copy_count="-n $(expr "$1" : '-n\(.*\)')"
152 other_options="$1 $2"
160 other_options="-o $(expr "$1" : '-o\(.*\)')"
165 user_filename="$1 $2"
173 user_filename="-u $(expr "$1" : '-u\(.*\)')"
210 if [ $# -gt 0 ]; then
215 if [ $NOT_SUPPORTED ]; then
216 dspmsg -s 1 dtmigrate 2 "dtlpsetup: dtlpsetup has been replaced with dtlp.\
217 \tdtlp will be automatically called in its place. \
218 \tThe following flags and parameters on the dtlpsetup call \
219 \thave been ignored because dtlp does not support these flags: \
223 /usr/dt/bin/dtlp "$banner_title" "$lpdest" "$print_command" "$copy_count" "$other_options" "$user_filename" "$a" "$e" "$h" "$r" "$s" "$v" "$w" "$print_file"
227 XCOMM dtlp return code of 5 maps to return code 7 of dtlpsetup
229 then exit NO_VALID_FILE_ERR
230 XCOMM dtlp return code of 6 maps to return code 8 of dtlpsetup
231 elif [ $status -eq 6 ]
232 then exit NO_READ_FILE_ERR
234 XCOMM all others are synonomous