I was wondering if there's anyone out there who could help with this. The point of it is to be able to launch Jython on a USB stick (using standalone jython.jar, as a cross-platform Portable Python) whether it's on windows or linux. I'm less familiar with linux so I'm wondering if anyone could help translate this windows script:
Part 1 read in arguments list
Part 2 What DIR am I in?
if [%1] ==  goto end
set ARGS=%ARGS% %1
rem get current dir
current DIR has my jython.jar and a subdirectory called 'jars' which are the files I want to include on my class path.
rem add jython to classpath
rem set jars dir
Get a list of all of the jar files in the /jars direcory and add them to a parameter in the format "/path/to/jars/jar1.jar";"path/to/jars/jar2.jar"
Part 5 java launch command
rem add jars to the classpath
for /F %%a in ('dir %JARS% /a /b /-p /o') do set MYCP=%MYCP%;"%JARS%%%a"
rem java launch command
java -classpath %MYCP% org.python.util.jython %ARGS%