summarylogtreecommitdiffstats
path: root/dbmain.sh
blob: 4b09f7f7761e9b261199b067ca297f0c66655d1b (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:$DB_MAIN_BIN/../java/jre/lib/amd64/server:$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