Lines 1-46
Link Here
|
1 |
#! /bin/sh |
|
|
2 |
[ ${JAVA_HOME} ] && JAVA=${JAVA_HOME}/bin/java || JAVA=java |
3 |
|
4 |
# Are we running within Cygwin on some version of Windows? |
5 |
cygwin=false; |
6 |
case "`uname -s`" in |
7 |
CYGWIN*) cygwin=true ;; |
8 |
esac |
9 |
|
10 |
# Squirrel home. |
11 |
SQUIRREL_SQL_HOME=`dirname "$0"` |
12 |
|
13 |
# SQuirreL home in Unix format. |
14 |
if $cygwin ; then |
15 |
UNIX_STYLE_HOME=`cygpath "$SQUIRREL_SQL_HOME"` |
16 |
else |
17 |
UNIX_STYLE_HOME=$SQUIRREL_SQL_HOME |
18 |
fi |
19 |
|
20 |
# First entry in classpath is the Squirrel application. |
21 |
TMP_CP=$UNIX_STYLE_HOME/squirrel-sql.jar |
22 |
|
23 |
# Then add all library jars to the classpath. |
24 |
IFS="" |
25 |
for a in $UNIX_STYLE_HOME/lib/*; do |
26 |
TMP_CP="$TMP_CP":"$a"; |
27 |
done |
28 |
|
29 |
# Now add the system classpath to the classpath. If running |
30 |
# Cygwin we also need to change the classpath to Windows format. |
31 |
if $cygwin ; then |
32 |
TMP_CP=`cygpath -w -p $TMP_CP` |
33 |
TMP_CP=$TMP_CP';'$CLASSPATH |
34 |
else |
35 |
TMP_CP=$TMP_CP:$CLASSPATH |
36 |
fi |
37 |
|
38 |
#To add translation working directories to your classpath edit and uncomment this line: |
39 |
#$JAVA -Xmx256m -cp $TMP_CP:<your working dir here> net.sourceforge.squirrel_sql.client.Main --log-config-file $SQUIRREL_SQL_HOME/log4j.properties --squirrel-home $SQUIRREL_SQL_HOME $1 $2 $3 $4 $5 $6 $7 $8 $9 |
40 |
|
41 |
#To change the language edit and uncomment this line: |
42 |
#$JAVA -Xmx256m -cp $TMP_CP:<your working dir here> -Duser.language=<your language here> net.sourceforge.squirrel_sql.client.Main --log-config-file $SQUIRREL_SQL_HOME/log4j.properties --squirrel-home $SQUIRREL_SQL_HOME $1 $2 $3 $4 $5 $6 $7 $8 $9 |
43 |
|
44 |
|
45 |
$JAVA -Xmx256m -cp $TMP_CP net.sourceforge.squirrel_sql.client.Main --log-config-file $SQUIRREL_SQL_HOME/log4j.properties --squirrel-home $SQUIRREL_SQL_HOME $1 $2 $3 $4 $5 $6 $7 $8 $9 |
46 |
|