From d479622f17acaafd4a6edad93fdda999df5a47de Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Thu, 26 Jun 2025 18:41:50 -0500 Subject: [PATCH] Also copy binary to bin/ruby See jruby/jruby-launcher#29 and jruby/jruby#8875 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 6ef2844..0176f9e 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,8 @@ install: @if [ ! -w $(BINDIR) ]; then echo "'$(BINDIR)' does not exist or cannot write to '$(BINDIR)'."; exit 1; fi @if [ -f $(BINDIR)/jruby -a ! -w $(BINDIR)/jruby ]; then echo "Cannot write to '$(BINDIR)/jruby'."; exit 1; fi cp -a ./jruby $(BINDIR)/jruby + @if [ -f $(BINDIR)/ruby -a ! -w $(BINDIR)/ruby ]; then echo "Cannot write to '$(BINDIR)/ruby'."; exit 1; fi + cp -a ./jruby $(BINDIR)/ruby @if [ x$(PREFIX) = xnotspecified ]; then echo "Please define where to install by passing PREFIX=."; exit 1; fi # Restore jruby.sh if it has been deleted @if [ ! -f $(BINDIR)/jruby.sh ]; then cp -a ./exe/jruby.sh $(BINDIR)/jruby.sh; fi