Skip to content

Commit

Permalink
[build] includ git gem in jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 23, 2023
1 parent 866b401 commit 40cfa4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion third_party/jruby/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jruby 9.4.5.0 (3.1.4) 2023-11-02 1abae2700f OpenJDK 64-Bit Server VM 21.0.1 on 21.0.1 +jit [arm64-darwin]
jruby 9.4.5.0 (3.1.4) 2023-11-02 1abae2700f OpenJDK 64-Bit Server VM 17.0.7+7 on 17.0.7+7 +jit [x86_64-darwin]
Binary file modified third_party/jruby/jruby-complete.jar
Binary file not shown.
9 changes: 5 additions & 4 deletions third_party/jruby/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
gems = {
"inifile" => "3.0.0",
"net-telnet" => "0.2.0",
"git" => "1.18.0",
}

jar_name = ARGV.first
Expand All @@ -29,10 +30,10 @@
jruby_version = `java -jar #{jar_name} -version`.split("\n").first
File.write("VERSION", "#{jruby_version}\n")

destination = File.realpath("third_party/jruby/")
FileUtils.rm_f("#{destination}jruby-complete.jar") if File.exist?("#{destination}jruby-complete.jar")
FileUtils.cp(jar_name, "#{destination}jruby-complete.jar")
FileUtils.cp("VERSION", "#{destination}VERSION")
destination = File.realpath("third_party/jruby")
FileUtils.rm_f("#{destination}/jruby-complete.jar") if File.exist?("#{destination}/jruby-complete.jar")
FileUtils.cp(jar_name, "#{destination}/jruby-complete.jar")
FileUtils.cp("VERSION", "#{destination}/VERSION")

puts `ls -l third_party/jruby/`

Expand Down

0 comments on commit 40cfa4b

Please sign in to comment.