Permalink
Browse files

Merge remote branch 'nox/script-fixes'

  • Loading branch information...
2 parents 3199250 + 989c739 commit 60767ecedbd5923380e29c86c8ac2721f020a003 mats cronqvist committed Mar 10, 2011
Showing with 24 additions and 2 deletions.
  1. +4 −0 priv/bin/dtop
  2. +4 −0 priv/bin/gperf
  3. +5 −1 priv/bin/ntop
  4. +7 −1 priv/bin/redbug
  5. +4 −0 priv/bin/sherk
View
@@ -16,6 +16,10 @@ else
SPATH=`which $0`
fi
+if [ -L $SPATH ];then
+ SPATH=`readlink $SPATH`
+fi
+
n=3
while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
ERL=erl
View
@@ -16,6 +16,10 @@ else
SPATH=`which $0`
fi
+if [ -L $SPATH ];then
+ SPATH=`readlink $SPATH`
+fi
+
n=4
while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
PATHS=""
View
@@ -16,7 +16,11 @@ else
SPATH=`which $0`
fi
-script=`basename $0`
+if [ -L $SPATH ];then
+ SPATH=`readlink $SPATH`
+fi
+
+script=`basename $SPATH`
n=3
while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
View
@@ -1,6 +1,12 @@
#!/bin/bash
-self=`dirname $_`
+SPATH=$_
+if [ -L $SPATH ];then
+ SPATH=`readlink $SPATH`
+fi
+
+self=`dirname $SPATH`
+self=`dirname $self`
self=`dirname $self`
self=`(cd $self ; pwd)`
View
@@ -15,6 +15,10 @@ else
SPATH=`which $0`
fi
+if [ -L $SPATH ];then
+ SPATH=`readlink $SPATH`
+fi
+
n=4
while [ 0 -lt "$n" ]; do SPATH=`dirname $SPATH`; let n=n-1; done
PATHS=""

0 comments on commit 60767ec

Please sign in to comment.