Skip to content

Commit 0c973d0

Browse files
committed
Update exe/ executables
1 parent cf9883d commit 0c973d0

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

exe/gem

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ done
1818
exec "$(dirname $SELF_PATH)/ruby" "$SELF_PATH" "$@"
1919

2020
#!ruby
21+
# frozen_string_literal: true
22+
2123
#--
2224
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
2325
# All rights reserved.

exe/syntax_suggest

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/usr/bin/env bash
2+
#
3+
# This file was generated by RubyGems.
4+
# The above lines match the format expected by rubygems/installer.rb check_executable_overwrite
5+
# bash section ignored by the Ruby interpreter
6+
7+
# get the absolute path of the executable and resolve symlinks
8+
SELF_PATH=$(cd "$(dirname "$0")" && pwd -P)/$(basename "$0")
9+
while [ -h "$SELF_PATH" ]; do
10+
# 1) cd to directory of the symlink
11+
# 2) cd to the directory of where the symlink points
12+
# 3) get the pwd
13+
# 4) append the basename
14+
DIR=$(dirname "$SELF_PATH")
15+
SYM=$(readlink "$SELF_PATH")
16+
SELF_PATH=$(cd "$DIR" && cd "$(dirname "$SYM")" && pwd)/$(basename "$SYM")
17+
done
18+
exec "$(dirname $SELF_PATH)/ruby" "$SELF_PATH" "$@"
19+
20+
#!ruby
21+
#
22+
# This file was generated by RubyGems.
23+
#
24+
# The application 'syntax_suggest' is installed as part of a gem, and
25+
# this file is here to facilitate running it.
26+
#
27+
28+
require 'rubygems'
29+
30+
Gem.use_gemdeps
31+
32+
version = ">= 0.a"
33+
34+
str = ARGV.first
35+
if str
36+
str = str.b[/\A_(.*)_\z/, 1]
37+
if str and Gem::Version.correct?(str)
38+
version = str
39+
ARGV.shift
40+
end
41+
end
42+
43+
if Gem.respond_to?(:activate_bin_path)
44+
load Gem.activate_bin_path('syntax_suggest', 'syntax_suggest', version)
45+
else
46+
gem "syntax_suggest", version
47+
load Gem.bin_path("syntax_suggest", "syntax_suggest", version)
48+
end

mx.truffleruby/mx_truffleruby.py

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def ruby_maven_deploy_public_repo_dir(args):
361361
'bin/rdbg',
362362
'bin/rdoc',
363363
'bin/ri',
364+
'bin/syntax_suggest',
364365
],
365366
library_configs=[
366367
mx_sdk_vm.LanguageLibraryConfig(

0 commit comments

Comments
 (0)