-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstart.sh
More file actions
48 lines (43 loc) · 1.83 KB
/
start.sh
File metadata and controls
48 lines (43 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
# Openbravo POS is a point of sales application designed for touch screens.
# Copyright (C) 2007-2009 Openbravo, S.L.
# http://sourceforge.net/projects/openbravopos
#
# This file is part of Openbravo POS.
#
# Openbravo POS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Openbravo POS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Openbravo POS. If not, see <http://www.gnu.org/licenses/>.
DIRNAME=`dirname $0`
CP=$DIRNAME/openbravopos.jar
CP=$CP:$DIRNAME/lib/*
CP=$CP:$DIRNAME/lib.jar
CP=$CP:$DIRNAME/locales.jar
CP=$CP:$DIRNAME/reports.jar
# Select the library folder
case "`uname -s`" in
Linux)
case "`uname -m`" in
i686) LIBRARYPATH=/lib/Linux/i686-unknown-linux-gnu;;
ia64) LIBRARYPATH=/lib/Linux/ia64-unknown-linux-gnu;;
x86_64|amd64) LIBRARYPATH=/lib/Linux/x86_64-unknown-linux-gnu;;
esac;;
SunOS)
case "`uname -m`" in
sparc32) LIBRARYPATH=/Solaris/sparc-solaris/sparc32-sun-solaris2.8;;
sparc64) LIBRARYPATH=/Solaris/sparc-solaris/sparc64-sun-solaris2.8;;
esac;;
Darwin) LIBRARYPATH=/lib/Mac_OS_X;;
CYGWIN*|MINGW32*) LIBRARYPATH=/lib/Windows/i368-mingw32;;
esac
# start Openbravo POS
java -cp $CP -Djava.util.logging.config.file=$DIRNAME/logging.properties -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Djava.library.path=$DIRNAME$LIBRARYPATH -Ddirname.path=$DIRNAME/ com.openbravo.pos.forms.StartPOS "$@"