aboutsummaryrefslogtreecommitdiffstats
path: root/databases/squirrel-sql/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-04 04:45:21 +0800
committermiwi <miwi@FreeBSD.org>2006-12-04 04:45:21 +0800
commit155ef2e0d2ebc31288b538cfce5835b0531bd0e7 (patch)
tree51c011059af1b55848063f804e93afada6d014d2 /databases/squirrel-sql/files
parent19f9b006ed218be3c678276435f54c8e3dfb0829 (diff)
downloadfreebsd-ports-gnome-155ef2e0d2ebc31288b538cfce5835b0531bd0e7.tar.gz
freebsd-ports-gnome-155ef2e0d2ebc31288b538cfce5835b0531bd0e7.tar.zst
freebsd-ports-gnome-155ef2e0d2ebc31288b538cfce5835b0531bd0e7.zip
SQuirreL SQL Client is a graphical Java program that will allow you to view the
structure of a JDBC compliant database, browse the data in tables, issue SQL commands etc. WWW: http://www.squirrelsql.org/index.php?page=screenshots PR: ports/106230 Submitted by: Roy Boerner <roy.boerner@bsd-crew.de>
Diffstat (limited to 'databases/squirrel-sql/files')
-rw-r--r--databases/squirrel-sql/files/squirrel-sql.in17
-rw-r--r--databases/squirrel-sql/files/squirrel-sql.sh46
2 files changed, 63 insertions, 0 deletions
diff --git a/databases/squirrel-sql/files/squirrel-sql.in b/databases/squirrel-sql/files/squirrel-sql.in
new file mode 100644
index 000000000000..938540aa805b
--- /dev/null
+++ b/databases/squirrel-sql/files/squirrel-sql.in
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+# Squirrel home.
+SQUIRREL_SQL_HOME=%%JAVASHAREDIR%%/squirrel-sql
+
+# First entry in classpath is the Squirrel application.
+TMP_CP=$SQUIRREL_SQL_HOME/squirrel-sql.jar
+
+# Then add all library jars to the classpath.
+for a in $SQUIRREL_SQL_HOME/lib/*; do
+ TMP_CP="$TMP_CP":"$a";
+done
+
+# Now add the system classpath to the classpath.
+TMP_CP=$TMP_CP:$CLASSPATH
+
+java -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
diff --git a/databases/squirrel-sql/files/squirrel-sql.sh b/databases/squirrel-sql/files/squirrel-sql.sh
new file mode 100644
index 000000000000..9fe2784b4f25
--- /dev/null
+++ b/databases/squirrel-sql/files/squirrel-sql.sh
@@ -0,0 +1,46 @@
+#! /bin/sh
+[ ${JAVA_HOME} ] && JAVA=${JAVA_HOME}/bin/java || JAVA=java
+
+# Are we running within Cygwin on some version of Windows?
+cygwin=false;
+case "`uname -s`" in
+ CYGWIN*) cygwin=true ;;
+esac
+
+# Squirrel home.
+SQUIRREL_SQL_HOME=`dirname "$0"`
+
+# SQuirreL home in Unix format.
+if $cygwin ; then
+ UNIX_STYLE_HOME=`cygpath "$SQUIRREL_SQL_HOME"`
+else
+ UNIX_STYLE_HOME=$SQUIRREL_SQL_HOME
+fi
+
+# First entry in classpath is the Squirrel application.
+TMP_CP=$UNIX_STYLE_HOME/squirrel-sql.jar
+
+# Then add all library jars to the classpath.
+IFS=""
+for a in $UNIX_STYLE_HOME/lib/*; do
+ TMP_CP="$TMP_CP":"$a";
+done
+
+# Now add the system classpath to the classpath. If running
+# Cygwin we also need to change the classpath to Windows format.
+if $cygwin ; then
+ TMP_CP=`cygpath -w -p $TMP_CP`
+ TMP_CP=$TMP_CP';'$CLASSPATH
+else
+ TMP_CP=$TMP_CP:$CLASSPATH
+fi
+
+#To add translation working directories to your classpath edit and uncomment this line:
+#$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
+
+#To change the language edit and uncomment this line:
+#$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
+
+
+$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
+