Commit 4fd5ea83 authored by Schröder, Christoph's avatar Schröder, Christoph
Browse files

make flatdb more compatible with maven build visualdct Debian package

The name of previously hardcoded VisualDCT.jar can now be altered 
with the environment variable FLATDB_VDCT_JAR.
If FLATDB_VDCT_JAR is not set, VisualDCT.jar will still be the default.
parent 100be912
......@@ -31,6 +31,12 @@ else
rootdir=$FLATDB_VDCT_DIR
fi
if [ -z "$FLATDB_VDCT_JAR" ]; then
vdctjar="VisualDCT.jar"
else
vdctjar=$FLATDB_VDCT_JAR
fi
vsn=current/
if [ "$1" = "-n" ]
......@@ -45,7 +51,7 @@ then
fi
if [ "$1" = "-v" ]
then
test -e $rootdir/$2/VisualDCT.jar && vsn=$2/
test -e $rootdir/$2/${vdctjar} && vsn=$2/
shift; shift
fi
......@@ -55,9 +61,9 @@ if [ -n "$FLATDB_VDCT_DIR" ]; then
fi
if [ -d $rootdir/plugins ]; then
mycp=`echo $rootdir/${vsn}VisualDCT.jar $rootdir/plugins/*.jar | sed -e 's/ /:/g'`
mycp=`echo $rootdir/${vsn}${vdctjar} $rootdir/plugins/*.jar | sed -e 's/ /:/g'`
else
mycp="$rootdir/${vsn}VisualDCT.jar"
mycp="$rootdir/${vsn}${vdctjar}"
fi
# last argument of $@:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment