32 lines
697 B
Bash
32 lines
697 B
Bash
#!/bin/sh
|
|
#
|
|
# jedit script
|
|
# JPackage Project <http://www.jpackage.org/>
|
|
|
|
# Source functions library
|
|
. /usr/share/java-utils/java-functions
|
|
|
|
# Source system prefs
|
|
if [ -f /etc/jedit.conf ] ; then
|
|
. /etc/jedit.conf
|
|
fi
|
|
|
|
# Source user prefs
|
|
if [ -f $HOME/.jeditrc ] ; then
|
|
. $HOME/.jeditrc
|
|
fi
|
|
|
|
# Configuration
|
|
MAIN_CLASS="org.gjt.sp.jedit.jEdit"
|
|
BASE_FLAGS="-Dbsh.jedit=true -Djedit.home=/usr/share/jedit -mx64m"
|
|
|
|
BASE_JARS="bsh2/bsh-classgen bsh2/bsh-commands bsh2/bsh-core bsh2/bsh-reflect bsh2/bsh-util saxon-aelfred gnu-regexp objectweb-asm/asm jedit"
|
|
#BASE_JARS="saxon-aelfred gnu-regexp jedit"
|
|
|
|
# Set parameters
|
|
set_jvm
|
|
set_classpath $BASE_JARS
|
|
set_flags $BASE_FLAGS
|
|
|
|
# Let's start
|
|
run "$@" |