No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / appl / kx / tenletxr.in
blob54a729cd9947f1c4c9fa695f4d841c89356e4c3f
1 #!/bin/sh
2 # $Heimdal: tenletxr.in 5328 1999-02-04 09:29:59Z assar $
3 # $NetBSD$
5 usage="Usage: $0 [-l username] [-k] [-v] [-h | --help] [--version] host [port]"
6 while true
7 do
8 case $1 in
9 -l) kx_args="${kx_args} -l $2"; shift 2;;
10 -k) kx_args="${kx_args} -k"; shift;;
11 --version) echo "$0: %PACKAGE% %VERSION%"; exit 0;;
12 -h) echo $usage; exit 0;;
13 --help) echo $usage; exit 0;;
14 -v) set -x; shift;;
15 -*) echo "$0: Bad option $1"; echo $usage; exit 1;;
16 *) break;;
17 esac
18 done
19 if test $# -lt 1; then
20 echo $usage
21 exit 1
23 host=$1
24 port=$2
25 bindir=%bindir%
26 pdc_trams=`dirname $0`
27 PATH=$pdc_trams:$bindir:$PATH
28 export PATH
29 set -- `kx $kx_args $host`
30 if test $# -ne 3; then
31 exit 1
33 screen=`echo $DISPLAY | sed -ne 's/[^:]*:[0-9]*\(\.[0-9]*\)/\1/p'`
34 pid=$1
35 disp=${2}${screen}
36 auth=$3
37 env DISPLAY=$disp XAUTHORITY=$auth $SHELL
38 kill -USR2 $pid