repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
crypto
/
dist
/
heimdal
/
lib
/
auth
/
sia
/
make-rpath
blob
e4389777e82f9e0e4f767a7973c042481a9e23b3
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
"
13
fi
14
shift
2
15
;;
16
-R
*)
17
d
=
`echo
$1
| sed 's,^-R,,'`
18
if
test
"
$rlist
"
;
then
19
rlist
=
"
${rlist}
:
${d}
"
20
else
21
rlist
=
"
${d}
"
22
fi
23
shift
24
;;
25
*)
26
rest
=
"
${rest}
$1
"
27
shift
28
;;
29
esac
30
done
31
rpath
=
32
if
test
"
$rlist
"
;
then
33
rpath
=
"-rpath
$rlist
"
34
fi
35
echo
"
${rpath}
${rest}
"