Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make it easier to run the JRuby version from the edge.

  • Loading branch information...
commit e4e29061a9487581b05cfc3cfd9c18fd7515ff96 1 parent 60858e3
@alehmann alehmann authored
Showing with 14 additions and 20 deletions.
  1. +2 −0  Manifest.txt
  2. +8 −0 rubyrep
  3. +4 −0 rubyrep.bat
  4. +0 −20 tasks/java.rake
View
2  Manifest.txt
@@ -67,6 +67,8 @@ lib/rubyrep/trigger_mode_switcher.rb
lib/rubyrep/type_casting_cursor.rb
lib/rubyrep/uninstall_runner.rb
lib/rubyrep/version.rb
+rubyrep
+rubyrep.bat
script/destroy
script/generate
script/txt2html
View
8 rubyrep
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+script_dir="`dirname \"$0\"`"
+
+jruby_path="$script_dir"/jruby/bin/jruby
+rubyrep_path="$script_dir"/bin/rubyrep
+
+$jruby_path --server $rubyrep_path $*
View
4 rubyrep.bat
@@ -0,0 +1,4 @@
+@echo off
+set jruby_path=%~dp0jruby\bin\jruby.bat
+set rubyrep_path=%~dp0bin\rubyrep
+%jruby_path% --server %rubyrep_path% %1 %2 %3 %4 %5 %6 %7 %8 %9
View
20 tasks/java.rake
@@ -1,23 +1,5 @@
namespace :deploy do
- BASH_FILE_CONTENT = <<'EOS'
-#!/bin/bash
-
-script_dir="`dirname \"$0\"`"
-
-jruby_path="$script_dir"/jruby/bin/jruby
-rubyrep_path="$script_dir"/bin/rubyrep
-
-$jruby_path --server $rubyrep_path $*
-EOS
-
- BAT_FILE_CONTENT = <<'EOS'.gsub(/^(.*)$/,"\\1\r")
-@echo off
-set jruby_path=%~dp0jruby\bin\jruby.bat
-set rubyrep_path=%~dp0bin\rubyrep
-%jruby_path% --server %rubyrep_path% %1 %2 %3 %4 %5 %6 %7 %8 %9
-EOS
-
desc "Create the java installation package"
task :java do
pkg_name = "rubyrep-#{RR::VERSION::STRING}"
@@ -28,8 +10,6 @@ EOS
system "mkdir -p /tmp/#{pkg_name}/jruby"
system "cp -r #{JRUBY_HOME}/* /tmp/#{pkg_name}/jruby/"
system "cd /tmp/#{pkg_name}/jruby; rm -rf samples share/ri lib/ruby/gems/1.8/doc"
- File.open("/tmp/#{pkg_name}/rubyrep.bat", 'w') {|f| f.write(BAT_FILE_CONTENT)}
- File.open("/tmp/#{pkg_name}/rubyrep", 'w') {|f| f.write(BASH_FILE_CONTENT)}
system "chmod a+x /tmp/#{pkg_name}/rubyrep"
system "cd /tmp; rm -f #{pkg_name}.zip; zip -r #{pkg_name}.zip #{pkg_name} >/dev/null"
system "mkdir -p pkg"
Please sign in to comment.
Something went wrong with that request. Please try again.