mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make symlink to "ruby" only from the install-name
This commit is contained in:
parent
9f275f7971
commit
b1be349bfb
1 changed files with 3 additions and 2 deletions
|
@ -867,12 +867,13 @@ exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time miniruby$(EXEEXT) {$(VPATH
|
|||
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OUTFLAG)$@ ruby-runner.$(OBJEXT) $(LIBS)
|
||||
$(Q) $(POSTLINK)
|
||||
$(Q) ./miniruby$(EXEEXT) \
|
||||
-e 'prog, dest = ARGV; dest += "/ruby"' \
|
||||
-e 'prog, dest, inst = ARGV; dest += "/ruby"' \
|
||||
-e 'exit unless prog==inst' \
|
||||
-e 'unless prog=="ruby"' \
|
||||
-e ' begin File.unlink(dest); rescue Errno::ENOENT; end' \
|
||||
-e ' File.symlink(prog, dest)' \
|
||||
-e 'end' \
|
||||
$(@F) $(@D)
|
||||
$(@F) $(@D) $(RUBY_INSTALL_NAME)$(EXEEXT)
|
||||
|
||||
exe/.time:
|
||||
$(Q) $(MAKEDIRS) $(@D)
|
||||
|
|
Loading…
Reference in a new issue