changeset 3:8a0edc0a0448

created seperate folders for dylan and robert and fixed old repl script
author Dylan Holmes <ocsenave@gmail.com>
date Tue, 28 Feb 2012 19:53:47 -0600
parents 1579e83305d7
children e22ae14fa9d5
files dylan/swank-all.pl dylan/wrapped_repl.sh repl.sh rlm/repl.sh rlm/swank-all.pl swank-all.pl swank-all.sh
diffstat 7 files changed, 123 insertions(+), 132 deletions(-) [+]
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dylan/swank-all.pl	Tue Feb 28 19:53:47 2012 -0600
     1.3 @@ -0,0 +1,43 @@
     1.4 +#!/usr/bin/perl
     1.5 +
     1.6 +$replP =  $ARGV[0];
     1.7 +
     1.8 +@JVM_options = 
     1.9 +  ("-verbose:gc",
    1.10 +   "-Xmn500M",
    1.11 +   "-Xms3000M",
    1.12 +   "-Xmx3000M",
    1.13 +   "-server");
    1.14 +
    1.15 +@classpath_projects = ("/home/ocsenave/proj/rlm/src");
    1.16 +
    1.17 +@classpath_libs =  ("/home/ocsenave/java/lib/*");
    1.18 +
    1.19 +@C_libs = ();
    1.20 +
    1.21 +$JVM_options = join " ", @JVM_options;
    1.22 +$classpath_projects = join ":", @classpath_projects;
    1.23 +$classpath_libs = join ":", @classpath_libs;
    1.24 +$C_libs = join ":", @C_libs;
    1.25 +
    1.26 +$swank_launch ="clojure.main";
    1.27 +$swank_launch .= " -e ";
    1.28 +$swank_launch .= '"';
    1.29 +$swank_launch .= "(do (require 'swank.swank)";
    1.30 +$swank_launch .= "(require 'rlm.rlm-commands)";
    1.31 +$swank_launch .= "(swank.swank/start-repl 4005))";
    1.32 +$swank_launch .= '"';
    1.33 +
    1.34 +$repl_launch = "clojure.main";
    1.35 +
    1.36 +$clojure_command = $swank_launch;
    1.37 +
    1.38 +if ($replP eq "--repl") {$clojure_command = $repl_launch;}
    1.39 +
    1.40 +$command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .
    1.41 +    " -Djava.library.path=$C_libs $clojure_command";
    1.42 +
    1.43 +print "$command\n";
    1.44 +
    1.45 +system($command);
    1.46 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dylan/wrapped_repl.sh	Tue Feb 28 19:53:47 2012 -0600
     2.3 @@ -0,0 +1,4 @@
     2.4 +#!/bin/sh
     2.5 +
     2.6 +rlwrap --command clojure -f /home/ocsenave/.clojure_completions --complete-filenames --quote-characters='\"' --prompt-colour=yellow swank-all --repl
     2.7 +
     3.1 --- a/repl.sh	Sun Dec 11 19:58:57 2011 -0700
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,4 +0,0 @@
     3.4 -#!/bin/sh
     3.5 -
     3.6 -rlwrap --command clojure -f /home/r/.clojure_completions --complete-filenames --quote-characters='\"' --prompt-colour=yellow swank-all --repl
     3.7 -
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/rlm/repl.sh	Tue Feb 28 19:53:47 2012 -0600
     4.3 @@ -0,0 +1,4 @@
     4.4 +#!/bin/sh
     4.5 +
     4.6 +rlwrap --command clojure -f /home/r/.clojure_completions --complete-filenames --quote-characters='\"' --prompt-colour=yellow swank-all --repl
     4.7 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/rlm/swank-all.pl	Tue Feb 28 19:53:47 2012 -0600
     5.3 @@ -0,0 +1,72 @@
     5.4 +#!/usr/bin/perl
     5.5 +
     5.6 +@JVM_options = 
     5.7 +  ("-verbose:gc",
     5.8 +   "-Xmn500M",
     5.9 +   "-Xms3000M",
    5.10 +   "-Xmx3000M",
    5.11 +   "-server");
    5.12 +
    5.13 +@classpath_projects = 
    5.14 +  ("/home/r/proj/rlm/src",
    5.15 +   "/home/r/proj/curry/src",
    5.16 +   "/home/r/java/lib/*",
    5.17 +   "/home/r/proj/aurellem/src",
    5.18 +   "/home/r/proj/pokemon-types/src",
    5.19 +   "/home/r/proj/cortex/src",
    5.20 +   "/home/r/proj/cortex/assets",
    5.21 +   "/home/r/proj/abomination/src",
    5.22 +   "/home/r/proj/abomination/classes",
    5.23 +   "/home/r/proj/coderloop/src",
    5.24 +   "/home/r/proj/audio-send/java/dist/audio-send.jar",
    5.25 +   "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
    5.26 +   "/home/r/proj/jmeCapture/dist/jmeCapture.jar"
    5.27 +);
    5.28 +
    5.29 +@classpath_libs = 
    5.30 +  ("/home/r/java/incanter/*",
    5.31 +   "/home/r/java/enlive/src",
    5.32 +   "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
    5.33 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
    5.34 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
    5.35 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
    5.36 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
    5.37 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
    5.38 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
    5.39 +   "/home/r/proj/jMonkeyEngine3/dist/opt/jME3-tests.jar",
    5.40 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
    5.41 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
    5.42 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
    5.43 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
    5.44 +   "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
    5.45 +   "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
    5.46 +   "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
    5.47 +   "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
    5.48 +
    5.49 +  );
    5.50 +
    5.51 +@C_libs = 
    5.52 +  ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
    5.53 +   "/home/r/java/lp_solve-5.5-java/lib/ux64");
    5.54 +
    5.55 +
    5.56 +$JVM_options = join " ", @JVM_options;
    5.57 +$classpath_projects = join ":", @classpath_projects;
    5.58 +$classpath_libs = join ":", @classpath_libs;
    5.59 +$C_libs = join ":", @C_libs;
    5.60 +
    5.61 +$clojure_launch ="clojure.main";
    5.62 +$clojure_launch .= " -e ";
    5.63 +$clojure_launch .= '"';
    5.64 +$clojure_launch .= "(do (require 'swank.swank)";
    5.65 +$clojure_launch .= "(require 'rlm.rlm-commands)";
    5.66 +$clojure_launch .= "(swank.swank/start-repl 4005))";
    5.67 +$clojure_launch .= '"';
    5.68 +
    5.69 +$command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs
    5.70 +  ." -Djava.library.path=".$C_libs." ".$clojure_launch;
    5.71 +
    5.72 +print "$command\n";
    5.73 +
    5.74 +system($command);
    5.75 +
     6.1 --- a/swank-all.pl	Sun Dec 11 19:58:57 2011 -0700
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,72 +0,0 @@
     6.4 -#!/usr/bin/perl
     6.5 -
     6.6 -@JVM_options = 
     6.7 -  ("-verbose:gc",
     6.8 -   "-Xmn500M",
     6.9 -   "-Xms3000M",
    6.10 -   "-Xmx3000M",
    6.11 -   "-server");
    6.12 -
    6.13 -@classpath_projects = 
    6.14 -  ("/home/r/proj/rlm/src",
    6.15 -   "/home/r/proj/curry/src",
    6.16 -   "/home/r/java/lib/*",
    6.17 -   "/home/r/proj/aurellem/src",
    6.18 -   "/home/r/proj/pokemon-types/src",
    6.19 -   "/home/r/proj/cortex/src",
    6.20 -   "/home/r/proj/cortex/assets",
    6.21 -   "/home/r/proj/abomination/src",
    6.22 -   "/home/r/proj/abomination/classes",
    6.23 -   "/home/r/proj/coderloop/src",
    6.24 -   "/home/r/proj/audio-send/java/dist/audio-send.jar",
    6.25 -   "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
    6.26 -   "/home/r/proj/jmeCapture/dist/jmeCapture.jar"
    6.27 -);
    6.28 -
    6.29 -@classpath_libs = 
    6.30 -  ("/home/r/java/incanter/*",
    6.31 -   "/home/r/java/enlive/src",
    6.32 -   "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
    6.33 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
    6.34 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
    6.35 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
    6.36 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
    6.37 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
    6.38 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
    6.39 -   "/home/r/proj/jMonkeyEngine3/dist/opt/jME3-tests.jar",
    6.40 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
    6.41 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
    6.42 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
    6.43 -   "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
    6.44 -   "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
    6.45 -   "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
    6.46 -   "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
    6.47 -   "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
    6.48 -
    6.49 -  );
    6.50 -
    6.51 -@C_libs = 
    6.52 -  ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
    6.53 -   "/home/r/java/lp_solve-5.5-java/lib/ux64");
    6.54 -
    6.55 -
    6.56 -$JVM_options = join " ", @JVM_options;
    6.57 -$classpath_projects = join ":", @classpath_projects;
    6.58 -$classpath_libs = join ":", @classpath_libs;
    6.59 -$C_libs = join ":", @C_libs;
    6.60 -
    6.61 -$clojure_launch ="clojure.main";
    6.62 -$clojure_launch .= " -e ";
    6.63 -$clojure_launch .= '"';
    6.64 -$clojure_launch .= "(do (require 'swank.swank)";
    6.65 -$clojure_launch .= "(require 'rlm.rlm-commands)";
    6.66 -$clojure_launch .= "(swank.swank/start-repl 4005))";
    6.67 -$clojure_launch .= '"';
    6.68 -
    6.69 -$command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs
    6.70 -  ." -Djava.library.path=".$C_libs." ".$clojure_launch;
    6.71 -
    6.72 -print "$command\n";
    6.73 -
    6.74 -system($command);
    6.75 -
     7.1 --- a/swank-all.sh	Sun Dec 11 19:58:57 2011 -0700
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,56 +0,0 @@
     7.4 -#!/bin/sh
     7.5 -
     7.6 -cd /home/r/tmp
     7.7 -
     7.8 -S_EXPR=""
     7.9 -
    7.10 -if [ "$1" = "--repl" ]; then
    7.11 -    ACTION="--repl"
    7.12 -else
    7.13 -    S_EXPR="(do (require 'swank.swank)\
    7.14 -                (require 'rlm.rlm-commands)\
    7.15 -                (swank.swank/start-repl 4005 ))"
    7.16 -    ACTION=" -e "
    7.17 -fi
    7.18 -
    7.19 -java \
    7.20 -\
    7.21 -`: # java VM options`\
    7.22 --verbose:gc \
    7.23 --Xmn500M \
    7.24 --Xms2000M \
    7.25 --Xmx2000M \
    7.26 --server \
    7.27 -\
    7.28 -`: # classpath contains all of my projects.`\
    7.29 --cp \
    7.30 -\
    7.31 -`: # my own projects`\
    7.32 -/home/r/proj/rlm/src:\
    7.33 -/home/r/proj/curry/src:\
    7.34 -/home/r/java/lib/*:\
    7.35 -/home/r/proj/aurellem/src:\
    7.36 -/home/r/proj/pokemon-types/src:\
    7.37 -/home/r/proj/cortex/src:\
    7.38 -/home/r/proj/cortex/assets:\
    7.39 -/home/r/proj/abomination/src:\
    7.40 -/home/r/proj/abomination/classes:\
    7.41 -/home/r/proj/coderloop/src:\
    7.42 -\
    7.43 -`: # libraries`\
    7.44 -/home/r/java/incanter/*:\
    7.45 -/home/r/java/enlive/src:\
    7.46 -/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar:\
    7.47 -/home/r/proj/jMonkeyEngine3/dist/jMonkeyEngine3.jar:\
    7.48 -/home/r/proj/jMonkeyEngine3/dist/lib/*:\
    7.49 -\
    7.50 -\
    7.51 -`: # interfacing with C libraries`\
    7.52 - -Djava.library.path=\
    7.53 -/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64:\
    7.54 -/home/r/java/lp_solve-5.5-java/lib/ux64\
    7.55 -\
    7.56 -`: # start the repl for clojure`\
    7.57 -\
    7.58 - clojure.main ${ACTION} "${S_EXPR}"
    7.59 -