No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / auth / sia / make-rpath
blobe4389777e82f9e0e4f767a7973c042481a9e23b3
1 #!/bin/sh
2 # $Heimdal: make-rpath 10345 2001-07-17 15:15:31Z assar $
3 # $NetBSD$
4 rlist=
5 rest=
6 while test $# -gt 0; do
7 case $1 in
8 -R|-rpath)
9 if test "$rlist"; then
10 rlist="${rlist}:$2"
11 else
12 rlist="$2"
14 shift 2
16 -R*)
17 d=`echo $1 | sed 's,^-R,,'`
18 if test "$rlist"; then
19 rlist="${rlist}:${d}"
20 else
21 rlist="${d}"
23 shift
26 rest="${rest} $1"
27 shift
29 esac
30 done
31 rpath=
32 if test "$rlist"; then
33 rpath="-rpath $rlist "
35 echo "${rpath}${rest}"