Fix the snavigator script in the case that a symbolic link was

in a different place.

Submitted by:	Andreas Kohn <andreas@syndrom23.de>
PR:		ports/93975
Approved by:	sem (mentor)
This commit is contained in:
Xin LI 2006-05-20 07:51:46 +00:00
parent fbf1d6727b
commit ed4133f1de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162855
2 changed files with 13 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= sourcenav
PORTVERSION= 5.1.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,12 @@
--- snavigator/snavigator/unix/snavigator.in.orig Mon Feb 27 20:22:56 2006
+++ snavigator/snavigator/unix/snavigator.in Mon Feb 27 20:23:35 2006
@@ -1,7 +1,8 @@
#!/bin/sh
# the directory where this script lives
-snbindir=`dirname $0`
+me=`realpath $0`
+snbindir=`dirname $me`
# navigato is either in ../share/etc/navigato or ../../share/etc/navigato