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
Branches
Tags
No related merge requests found
......@@ -21,7 +21,11 @@
# Author: Marco Biasini
# 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"`
export DNG_ROOT=`cd "$BIN_DIR/..";pwd`
export PATH="$DNG_ROOT/bin:$PATH"
......
......@@ -22,7 +22,11 @@
# convenience wrapper for non-gui openstructure interface 'ost'
#
# 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"`
export DNG_ROOT=`cd "$BIN_DIR/..";pwd`
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