added BASEPATH to allow for execution via symlink

This commit is contained in:
Dorian Scholz
2014-09-10 13:26:14 +02:00
parent 8bb9c3610c
commit 1db06de287
+3 -2
View File
@@ -4,7 +4,8 @@
##############################################################################
# Import required scripts
. "`dirname $0`/src/config.sh"
BASEPATH="$(dirname $(readlink -f $0))"
. "$BASEPATH/src/config.sh"
# Set variables corresponding to the input parameters
ARGUMENTS="$@"
@@ -128,7 +129,7 @@ FILE_OUTPUT_PDFA="`absolutePath "$2"`"
# set script path as working directory
cd "`dirname $0`"
cd "$BASEPATH"
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "$TOOLNAME version: $VERSION"
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "Arguments: $ARGUMENTS"