]> git.pld-linux.org Git - packages/JXplorer.git/blob - JXplorer.sh
- drop obsolete and outdated manual inclusion of rpm macros
[packages/JXplorer.git] / JXplorer.sh
1 #!/bin/sh
2
3 [ -r /usr/share/java-utils/java-functions ] || exit 1
4
5 . /usr/share/java-utils/java-functions 
6
7 if [ -r /etc/sysconfig/jxplorer ]; then
8         . /etc/sysconfig/jxplorer
9 fi
10
11 JX_DATADIR=${JX_DATADIR:-"@DATADIR@/JXplorer"}
12
13 if ! [ -d "$HOME/.JXplorer" ]; then
14   mkdir "$HOME/.JXplorer"
15   cp /etc/JXplorer/connections.txt "$HOME/.JXplorer/connections.txt"
16   ln -s /etc/JXplorer/log4j.xml "$HOME/.JXplorer/log4j.xml"
17   cp /etc/JXplorer/jxconfig.txt "$HOME/.JXplorer/jxconfig.txt"
18   ln -s $JX_DATADIR/templates "$HOME/.JXplorer/templates"
19   ln -s $JX_DATADIR/security "$HOME/.JXplorer/security"
20 fi
21
22 cd "$HOME/.JXplorer"
23 CLASSPATH=$(build-classpath junit jhall jxplorer)
24 MAIN_CLASS=com.ca.directory.jxplorer.JXplorer
25 JAVA_HOME=@JVMDIR@/java-sun-jre
26
27 if [ "$#" == "0" ]; then
28     run < /dev/null > /dev/null 2>&1 &
29   else if [ "$1" = "console" ] ; then
30     run
31   else
32     echo "Usage: $0 [console|help]"
33   fi
34 fi
This page took 0.042371 seconds and 3 git commands to generate.