aboutsummaryrefslogtreecommitdiffstats
path: root/util/mklink.sh
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-04-23 22:13:45 +0000
committerBodo Möller <bodo@openssl.org>1999-04-23 22:13:45 +0000
commitec577822f95a8bca0023c5c77cef1a4916822d4a (patch)
tree206e75c0178ff0719b87a4d94e261fc243ce42a8 /util/mklink.sh
parent806115771c7a056756cb5f93bb3aaa71cd418e49 (diff)
downloadopenssl-ec577822f95a8bca0023c5c77cef1a4916822d4a.tar.gz
Change #include filenames from <foo.h> to <openssl.h>.
Submitted by: Reviewed by: PR:
Diffstat (limited to 'util/mklink.sh')
-rwxr-xr-xutil/mklink.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/mklink.sh b/util/mklink.sh
index 015586a9c3..3eeba67b2e 100755
--- a/util/mklink.sh
+++ b/util/mklink.sh
@@ -12,6 +12,15 @@ shift
here=`pwd`
tmp=`dirname $from`
+prefix='..'
+
+while [ `basename $tmp`x != ..x -a `basename $tmp`x != .x ]
+do
+ prefix=../$prefix
+ tmp=`dirname $tmp`
+done
+
+to=''
while [ "$tmp"x != "x" -a "$tmp"x != ".x" ]
do
t=`basename $here`
@@ -19,7 +28,7 @@ do
to="/$t$to"
tmp=`dirname $tmp`
done
-to=..$to
+to=$prefix$to
if [ "$*"x != "x" ]; then
for i in $*