| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/libreadline-java/files/ |
Upload File : |
#!/bin/sh
# Invoke Jython.
# jython.sh,v 1.5 2007/09/28 09:13:55 martin Exp
#
# The path names below are for Jython 2.5.3 on FreeBSD.
#
# NOTE: Jython >= 2.5 already includes rlcompleter,
# see http://www.jython.org/docs/library/rlcompleter.html
# This is useful for older Jython versions only!
if [ -d "%%LOCALBASE%%/lib/jython22" ] ; then
_ver=22
else
_ver=
fi
CP="%%LOCALBASE%%/lib/jython${_ver}/jython.jar"
defs=
wrapper=
case "${JYTHON_CONSOLE:-Editline}" in
*[Ee]dit[Ll]ine)
CP="$CP:%%LOCALBASE%%/share/java/classes/libreadline-java.jar"
defs="-Dpython.console=org.python.util.ReadlineConsole"
defs="$defs -Dpython.console.readlinelib=Editline"
;;
*[Gg]et[Ll]ine)
CP="$CP:%%LOCALBASE%%/share/java/classes/libreadline-java.jar"
defs="-Dpython.console=org.python.util.ReadlineConsole"
defs="$defs -Dpython.console.readlinelib=Getline"
;;
*[Jj][Ll]ine)
CP="$CP:%%LOCALBASE%%/share/java/classes/jline.jar"
defs="-Dpython.console="
wrapper=jline.ConsoleRunner
;;
*[Rr]ead[Ll]ine)
CP="$CP:%%LOCALBASE%%/share/java/classes/libreadline-java.jar"
defs="-Dpython.console=org.python.util.ReadlineConsole"
defs="$defs -Dpython.console.readlinelib=GnuReadline"
;;
*)
echo >&2 "$0: illegal value of JYTHON_CONSOLE: $JYTHON_CONSOLE"
exit 64
;;
esac
if [ -n "$CLASSPATH" ]; then
CP="$CP:$CLASSPATH"
fi
exec java -Dpython.home="%%LOCALBASE%%/lib/jython${_ver}" \
-Dpython.cachedir="${HOME}/.jython-cachedir" \
-classpath "$CP" $wrapper org.python.util.jython $defs "$@"
#EOF#