-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun_console.sh
executable file
·70 lines (58 loc) · 1.68 KB
/
run_console.sh
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
# Genoogle: Similar DNA Sequences Searching Engine and Tools. (http://genoogle.pih.bio.br)
# Copyright (C) 2008,2009 Felipe Fernandes Albrecht ([email protected])
#
# For further information check the LICENSE file.
#
# ----------------------------------------------------------------------------------------
# Script to start Genoogle with the console interface.
#
# Environment Variables:
#
# GENOOGLE_HOME Point at your Genoogle base directory.
#
# JAVA_HOME Must point at your Java Development Kit installation.
# Required to run the with the "debug" or "javac" argument.
#
# ----------------------------------------------------------------------------------------
if [ -n "${GENOOGLE_HOME+x}" ]; then
echo "\$GENOOGLE_HOME=$GENOOGLE_HOME"
else
echo "\$GENOOGLE_HOME is not set. Using `pwd`"
GENOOGLE_HOME=`pwd`
echo "\$GENOOGLE_HOME=$GENOOGLE_HOME"
fi
GENOOGLE_JAR="$GENOOGLE_HOME/genoogle.jar"
if [ -f "$GENOOGLE_JAR" ]; then
echo "$GENOOGLE_JAR was found."
else
echo "$GENOOGLE_JAR was not found."
exit -1
fi
if [ -d ${GENOOGLE_HOME}/conf ]; then
echo "Configuration files is $GENOOGLE_HOME/conf/conf.xml"
else
echo "Configuration directory not found. Please configure correctly \$GENOOGLE_HOME."
exit -1
fi
if [ -n "${JAVA_HOME+x}" ]; then
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA_BIN=$JAVA_HOME/bin/java
fi
else
if [ -x "/usr/bin/java" ]; then
JAVA_BIN=/usr/bin/java
fi
fi
if [ ! -z "$JAVA_BIN" ]; then
echo "java is at $JAVA_BIN"
else
echo "java was not found."
exit -2
fi
$JAVA_BIN \
-server \
-Xms4086m \
-Xmx7168m \
-classpath ${GENOOGLE_HOME}/genoogle.jar:${GENOOGLE_HOME}/lib/* \
bio.pih.genoogle.Genoogle $1 $2