projects
/
oweals
/
openssl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Solaris shared library support.
[oweals/openssl.git]
/
util
/
mklink.sh
1
#!/bin/sh
2
#
3
# A bit of an ugly shell script used to actually 'link' files.
4
# Used by 'make links'
5
#
6
7
PATH=$PATH:.:util:../util:../../util
8
export PATH
9
10
from=$1
11
shift
12
13
here=`pwd`
14
tmp=`dirname $from`
15
while [ "$tmp"x != "x" -a "$tmp"x != ".x" ]
16
do
17
t=`basename $here`
18
here=`dirname $here`
19
to="/$t$to"
20
tmp=`dirname $tmp`
21
done
22
to=..$to
23
24
if [ "$*"x != "x" ]; then
25
for i in $*
26
do
27
rm -f $from/$i
28
ln -s $to/$i $from/$i
29
echo "$i => $from/$i"
30
done
31
fi
32
exit 0;