annotate rlm/swank-all.pl @ 7:913acb5a675b

repaired old repl script using changes from dylan
author Robert McIntyre <rlm@mit.edu>
date Thu, 01 Mar 2012 06:28:39 -0700
parents e22ae14fa9d5
children 00524751595b
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@2 8 "-Xms3000M",
rlm@2 9 "-Xmx3000M",
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@2 15 "/home/r/proj/curry/src",
rlm@2 16 "/home/r/java/lib/*",
rlm@2 17 "/home/r/proj/aurellem/src",
rlm@2 18 "/home/r/proj/pokemon-types/src",
rlm@2 19 "/home/r/proj/cortex/src",
rlm@2 20 "/home/r/proj/cortex/assets",
rlm@2 21 "/home/r/proj/abomination/src",
rlm@2 22 "/home/r/proj/abomination/classes",
rlm@5 23 "/home/r/proj/pony/src",
rlm@2 24 "/home/r/proj/coderloop/src",
rlm@2 25 "/home/r/proj/audio-send/java/dist/audio-send.jar",
rlm@2 26 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
rlm@2 27 "/home/r/proj/jmeCapture/dist/jmeCapture.jar"
rlm@2 28 );
rlm@2 29
rlm@2 30 @classpath_libs =
rlm@2 31 ("/home/r/java/incanter/*",
rlm@2 32 "/home/r/java/enlive/src",
rlm@2 33 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
rlm@5 34 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",
rlm@5 35 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",
rlm@5 36 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
rlm@2 37 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
rlm@2 38 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
rlm@5 39
rlm@5 40 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
rlm@5 41 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
rlm@2 42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
rlm@5 43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",
rlm@5 44 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
rlm@5 45 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",
rlm@2 46 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
rlm@2 47 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
rlm@2 48 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
rlm@5 49 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
rlm@5 50 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",
rlm@5 51 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",
rlm@5 52 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",
rlm@5 53 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",
rlm@5 54 "/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",
rlm@5 55 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",
rlm@5 56 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
rlm@5 57 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",
rlm@5 58
rlm@5 59 ### physics, choose jbullet or bullet
rlm@5 60
rlm@5 61 # jbullet -- has... special.... cone joints
rlm@5 62 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
rlm@4 63 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
rlm@5 64
rlm@5 65 # bullet
rlm@5 66 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",
rlm@5 67 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",
rlm@2 68
rlm@2 69 );
rlm@2 70
rlm@2 71 @C_libs =
rlm@2 72 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
rlm@2 73 "/home/r/java/lp_solve-5.5-java/lib/ux64");
rlm@2 74
rlm@2 75
rlm@2 76 $JVM_options = join " ", @JVM_options;
rlm@2 77 $classpath_projects = join ":", @classpath_projects;
rlm@2 78 $classpath_libs = join ":", @classpath_libs;
rlm@2 79 $C_libs = join ":", @C_libs;
rlm@2 80
rlm@7 81 $swank_launch ="clojure.main";
rlm@7 82 $swank_launch .= " -e ";
rlm@7 83 $swank_launch .= '"';
rlm@7 84 $swank_launch .= "(do (require 'swank.swank)";
rlm@7 85 $swank_launch .= "(require 'rlm.rlm-commands)";
rlm@7 86 $swank_launch .= "(swank.swank/start-repl 4005))";
rlm@7 87 $swank_launch .= '"';
rlm@2 88
rlm@7 89 $repl_launch = "clojure.main";
rlm@7 90
rlm@7 91 $clojure_command = $swank_launch;
rlm@7 92
rlm@7 93 if ($replP eq "--repl") {$clojure_command = $repl_launch;}
rlm@7 94
rlm@7 95 $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .
rlm@7 96 " -Djava.library.path=$C_libs $clojure_command";
rlm@2 97
rlm@2 98 print "$command\n";
rlm@2 99
rlm@2 100 system($command);
rlm@2 101