summarylogtreecommitdiffstats
path: root/dbmain.sh
blob: 8958f7f44f2bb445cb10173545efde83bb06d28e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
if [ "x$1" != "x" ] && [ -f "$1" ] && [[  "$1" == *.lun ]]
then
  filepath="$(realpath "$1")"
fi

export DB_MAIN_BIN=/opt/dbmain/bin
export PATH=$DB_MAIN_BIN:$PATH
export LD_LIBRARY_PATH=$DB_MAIN_BIN:$DB_MAIN_BIN/../java/jre/lib/i386/client:$LD_LIBRARY_PATH
#CLASSPATH modification only for dbm-deasy-9xx-linux-setup.tar.gz
export CLASSPATH=.:$DB_MAIN_BIN/../plugins/deasy/lib/jidbmjava.jar:$DB_MAIN_BIN/../plugins/deasy/lib/sqlite-jdbc-3.6.20.1.jar:$CLASSPATH
cd $DB_MAIN_BIN

if [ "x$filepath" != "x" ]
then
  db_main $filepath
else
  db_main
fi