annotate 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
rev   line source
rlm@2 1 #!/usr/bin/perl
rlm@2 2
rlm@7 3 $replP = $ARGV[0];
rlm@7 4
rlm@2 5 @JVM_options =
rlm@2 6 ("-verbose:gc",
rlm@2 7 "-Xmn500M",
rlm@9 8 "-Xms1500M",
rlm@9 9 "-Xmx1500M",
rlm@2 10 "-server");
rlm@2 11
rlm@2 12 @classpath_projects =
rlm@2 13 ("/home/r/proj/rlm/src",
rlm@5 14 "/home/r/proj/dylan/src",
rlm@9 15 "/home/r/proj/pony-stories/src",
rlm@9 16 "/home/r/proj/data.json/src/main/clojure",
rlm@2 17 "/home/r/proj/curry/src",
rlm@2 18 "/home/r/java/lib/*",
rlm@2 19 "/home/r/proj/aurellem/src",
rlm@2 20 "/home/r/proj/pokemon-types/src",
rlm@2 21 "/home/r/proj/cortex/src",
rlm@2 22 "/home/r/proj/cortex/assets",
rlm@2 23 "/home/r/proj/abomination/src",
rlm@2 24 "/home/r/proj/abomination/classes",
rlm@5 25 "/home/r/proj/pony/src",
rlm@2 26 "/home/r/proj/coderloop/src",
rlm@2 27 "/home/r/proj/audio-send/java/dist/audio-send.jar",
rlm@2 28 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
rlm@8 29 "/home/r/proj/jmeCapture/dist/jmeCapture.jar",
rlm@8 30 "/home/r/proj/vba-clojure/java/dist/gb-bindings.jar",
rlm@9 31 "/home/r/proj/vba-clojure/clojure",
rlm@9 32 "/home/r/proj/lockjaw/src"
rlm@2 33 );
rlm@2 34
rlm@2 35 @classpath_libs =
rlm@2 36 ("/home/r/java/incanter/*",
rlm@2 37 "/home/r/java/enlive/src",
rlm@2 38 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
rlm@5 39 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",
rlm@5 40 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",
rlm@5 41 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
rlm@2 42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
rlm@2 43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
rlm@5 44
rlm@5 45 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
rlm@5 46 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
rlm@2 47 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
rlm@5 48 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",
rlm@5 49 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
rlm@5 50 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",
rlm@2 51 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
rlm@2 52 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
rlm@2 53 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
rlm@5 54 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
rlm@5 55 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",
rlm@5 56 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",
rlm@5 57 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",
rlm@5 58 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",
rlm@9 59 #"/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",
rlm@5 60 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",
rlm@5 61 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
rlm@5 62 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",
rlm@5 63
rlm@5 64 ### physics, choose jbullet or bullet
rlm@5 65
rlm@5 66 # jbullet -- has... special.... cone joints
rlm@5 67 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
rlm@4 68 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
rlm@5 69
rlm@5 70 # bullet
rlm@5 71 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",
rlm@5 72 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",
rlm@2 73
rlm@2 74 );
rlm@2 75
rlm@2 76 @C_libs =
rlm@2 77 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
rlm@8 78 "/home/r/java/lp_solve-5.5-java/lib/ux64",
rlm@8 79 "/home/r/proj/vba-clojure/build/artifacts/lib");
rlm@2 80
rlm@2 81
rlm@2 82 $JVM_options = join " ", @JVM_options;
rlm@2 83 $classpath_projects = join ":", @classpath_projects;
rlm@2 84 $classpath_libs = join ":", @classpath_libs;
rlm@2 85 $C_libs = join ":", @C_libs;
rlm@2 86
rlm@7 87 $swank_launch ="clojure.main";
rlm@7 88 $swank_launch .= " -e ";
rlm@7 89 $swank_launch .= '"';
rlm@7 90 $swank_launch .= "(do (require 'swank.swank)";
rlm@7 91 $swank_launch .= "(require 'rlm.rlm-commands)";
rlm@7 92 $swank_launch .= "(swank.swank/start-repl 4005))";
rlm@7 93 $swank_launch .= '"';
rlm@2 94
rlm@7 95 $repl_launch = "clojure.main";
rlm@7 96
rlm@7 97 $clojure_command = $swank_launch;
rlm@7 98
rlm@7 99 if ($replP eq "--repl") {$clojure_command = $repl_launch;}
rlm@7 100
rlm@7 101 $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .
rlm@7 102 " -Djava.library.path=$C_libs $clojure_command";
rlm@2 103
rlm@2 104 print "$command\n";
rlm@2 105
rlm@2 106 system($command);
rlm@2 107