Mercurial > repl
view rlm/swank-all.pl @ 9:ea8bd9af7576
add ponies
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 26 Jul 2012 19:52:01 -0500 |
parents | 00524751595b |
children | d60460cbcf4b |
line wrap: on
line source
1 #!/usr/bin/perl3 $replP = $ARGV[0];5 @JVM_options =6 ("-verbose:gc",7 "-Xmn500M",8 "-Xms1500M",9 "-Xmx1500M",10 "-server");12 @classpath_projects =13 ("/home/r/proj/rlm/src",14 "/home/r/proj/dylan/src",15 "/home/r/proj/pony-stories/src",16 "/home/r/proj/data.json/src/main/clojure",17 "/home/r/proj/curry/src",18 "/home/r/java/lib/*",19 "/home/r/proj/aurellem/src",20 "/home/r/proj/pokemon-types/src",21 "/home/r/proj/cortex/src",22 "/home/r/proj/cortex/assets",23 "/home/r/proj/abomination/src",24 "/home/r/proj/abomination/classes",25 "/home/r/proj/pony/src",26 "/home/r/proj/coderloop/src",27 "/home/r/proj/audio-send/java/dist/audio-send.jar",28 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",29 "/home/r/proj/jmeCapture/dist/jmeCapture.jar",30 "/home/r/proj/vba-clojure/java/dist/gb-bindings.jar",31 "/home/r/proj/vba-clojure/clojure",32 "/home/r/proj/lockjaw/src"33 );35 @classpath_libs =36 ("/home/r/java/incanter/*",37 "/home/r/java/enlive/src",38 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",39 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",40 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",41 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",45 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",46 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",47 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",48 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",49 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",50 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",51 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",52 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",53 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",54 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",55 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",56 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",57 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",58 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",59 #"/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",60 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",61 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",62 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",64 ### physics, choose jbullet or bullet66 # jbullet -- has... special.... cone joints67 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",68 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",70 # bullet71 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",72 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",74 );76 @C_libs =77 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",78 "/home/r/java/lp_solve-5.5-java/lib/ux64",79 "/home/r/proj/vba-clojure/build/artifacts/lib");82 $JVM_options = join " ", @JVM_options;83 $classpath_projects = join ":", @classpath_projects;84 $classpath_libs = join ":", @classpath_libs;85 $C_libs = join ":", @C_libs;87 $swank_launch ="clojure.main";88 $swank_launch .= " -e ";89 $swank_launch .= '"';90 $swank_launch .= "(do (require 'swank.swank)";91 $swank_launch .= "(require 'rlm.rlm-commands)";92 $swank_launch .= "(swank.swank/start-repl 4005))";93 $swank_launch .= '"';95 $repl_launch = "clojure.main";97 $clojure_command = $swank_launch;99 if ($replP eq "--repl") {$clojure_command = $repl_launch;}101 $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .102 " -Djava.library.path=$C_libs $clojure_command";104 print "$command\n";106 system($command);