зеркало из https://github.com/mozilla/pjs.git
Fix symlink detection (again) so that relative symlinks work and the binary is executed from the cwd, not the installation directory.
Thanks to Andrew Schultz <ajschult@eos.ncsu.edu> for the patch. Bug #57866 r=cls
This commit is contained in:
Родитель
35d427682d
Коммит
366ab13e3b
|
@ -16,7 +16,7 @@
|
|||
# Reserved.
|
||||
#
|
||||
|
||||
## $Id: mozilla.in,v 1.1 2002-04-25 02:51:10 seawood%netscape.com Exp $
|
||||
## $Id: mozilla.in,v 1.2 2002-06-13 12:16:52 seawood%netscape.com Exp $
|
||||
##
|
||||
## Usage:
|
||||
##
|
||||
|
@ -50,12 +50,7 @@ else
|
|||
found=1
|
||||
else
|
||||
here=`/bin/pwd`
|
||||
until test $found != 0 -o ! -L "$progname" ; do
|
||||
run_moz="$curdir/run-mozilla.sh"
|
||||
if [ -x $run_moz ]; then
|
||||
dist_bin=$curdir
|
||||
found=1
|
||||
else
|
||||
while [ -h "$progname" ]; do
|
||||
bn=`basename "$progname"`
|
||||
cd `dirname "$progname"`
|
||||
progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' `
|
||||
|
@ -63,6 +58,12 @@ else
|
|||
break
|
||||
fi
|
||||
curdir=`dirname $progname`
|
||||
run_moz="$curdir/run-mozilla.sh"
|
||||
if [ -x $run_moz ]; then
|
||||
cd $curdir
|
||||
dist_bin=`pwd`
|
||||
found=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
cd $here
|
||||
|
|
Загрузка…
Ссылка в новой задаче