rlm@2: #!/usr/bin/perl rlm@2: rlm@7: $replP = $ARGV[0]; rlm@7: rlm@2: @JVM_options = rlm@2: ("-verbose:gc", rlm@2: "-Xmn500M", rlm@2: "-Xms3000M", rlm@2: "-Xmx3000M", rlm@2: "-server"); rlm@2: rlm@2: @classpath_projects = rlm@2: ("/home/r/proj/rlm/src", rlm@5: "/home/r/proj/dylan/src", rlm@2: "/home/r/proj/curry/src", rlm@2: "/home/r/java/lib/*", rlm@2: "/home/r/proj/aurellem/src", rlm@2: "/home/r/proj/pokemon-types/src", rlm@2: "/home/r/proj/cortex/src", rlm@2: "/home/r/proj/cortex/assets", rlm@2: "/home/r/proj/abomination/src", rlm@2: "/home/r/proj/abomination/classes", rlm@5: "/home/r/proj/pony/src", rlm@2: "/home/r/proj/coderloop/src", rlm@2: "/home/r/proj/audio-send/java/dist/audio-send.jar", rlm@2: "/home/r/proj/audio-send/java/dist/audio-send-natives.jar", rlm@2: "/home/r/proj/jmeCapture/dist/jmeCapture.jar" rlm@2: ); rlm@2: rlm@2: @classpath_libs = rlm@2: ("/home/r/java/incanter/*", rlm@2: "/home/r/java/enlive/src", rlm@2: "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar", rlm@2: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar", rlm@2: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar", rlm@5: rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar", rlm@2: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar", rlm@2: "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar", rlm@2: "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar", rlm@2: "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar", rlm@5: rlm@5: ### physics, choose jbullet or bullet rlm@5: rlm@5: # jbullet -- has... special.... cone joints rlm@5: # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar", rlm@4: # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar", rlm@5: rlm@5: # bullet rlm@5: "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar", rlm@5: "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar", rlm@2: rlm@2: ); rlm@2: rlm@2: @C_libs = rlm@2: ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64", rlm@2: "/home/r/java/lp_solve-5.5-java/lib/ux64"); rlm@2: rlm@2: rlm@2: $JVM_options = join " ", @JVM_options; rlm@2: $classpath_projects = join ":", @classpath_projects; rlm@2: $classpath_libs = join ":", @classpath_libs; rlm@2: $C_libs = join ":", @C_libs; rlm@2: rlm@7: $swank_launch ="clojure.main"; rlm@7: $swank_launch .= " -e "; rlm@7: $swank_launch .= '"'; rlm@7: $swank_launch .= "(do (require 'swank.swank)"; rlm@7: $swank_launch .= "(require 'rlm.rlm-commands)"; rlm@7: $swank_launch .= "(swank.swank/start-repl 4005))"; rlm@7: $swank_launch .= '"'; rlm@2: rlm@7: $repl_launch = "clojure.main"; rlm@7: rlm@7: $clojure_command = $swank_launch; rlm@7: rlm@7: if ($replP eq "--repl") {$clojure_command = $repl_launch;} rlm@7: rlm@7: $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" . rlm@7: " -Djava.library.path=$C_libs $clojure_command"; rlm@2: rlm@2: print "$command\n"; rlm@2: rlm@2: system($command); rlm@2: