Skip to content
Snippets Groups Projects
Commit 20758a26 authored by marco's avatar marco
Browse files

fix startup scripts when using symlinks

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2593 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent e80666e3
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,11 @@ ...@@ -21,7 +21,11 @@
# Author: Marco Biasini # Author: Marco Biasini
# Self detect important directories # Self detect important directories
SCRIPT_NAME=$0 if [ -h "$0" ] ; then
SCRIPT_NAME=`readlink "$0"`
else
SCRIPT_NAME="$0"
fi
BIN_DIR=`dirname "$SCRIPT_NAME"` BIN_DIR=`dirname "$SCRIPT_NAME"`
export DNG_ROOT=`cd "$BIN_DIR/..";pwd` export DNG_ROOT=`cd "$BIN_DIR/..";pwd`
export PATH="$DNG_ROOT/bin:$PATH" export PATH="$DNG_ROOT/bin:$PATH"
......
...@@ -22,7 +22,11 @@ ...@@ -22,7 +22,11 @@
# convenience wrapper for non-gui openstructure interface 'ost' # convenience wrapper for non-gui openstructure interface 'ost'
# #
# Self detect important directories # Self detect important directories
SCRIPT_NAME=$0 if [ -h "$0" ] ; then
SCRIPT_NAME=`readlink "$0"`
else
SCRIPT_NAME="$0"
fi
BIN_DIR=`dirname "$SCRIPT_NAME"` BIN_DIR=`dirname "$SCRIPT_NAME"`
export DNG_ROOT=`cd "$BIN_DIR/..";pwd` export DNG_ROOT=`cd "$BIN_DIR/..";pwd`
export PATH="$DNG_ROOT/bin:$PATH" export PATH="$DNG_ROOT/bin:$PATH"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment