summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/auth/sia/make-rpath
blob: 2223aa00b00e7afa270e208a292992e14f150528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# $Id: make-rpath,v 1.1 2001/07/17 15:15:31 assar Exp $
rlist=
rest=
while test $# -gt 0; do
case $1 in
-R|-rpath)
  if test "$rlist"; then
    rlist="${rlist}:$2"
  else
    rlist="$2"
  fi
  shift 2
  ;;
-R*) 
  d=`echo $1 | sed 's,^-R,,'`
  if test "$rlist"; then
    rlist="${rlist}:${d}"
  else
    rlist="${d}"
  fi
  shift
  ;;
*)
  rest="${rest} $1"
  shift
  ;;
esac
done
rpath=
if test "$rlist"; then
  rpath="-rpath $rlist "
fi
echo "${rpath}${rest}"
OpenPOWER on IntegriCloud