|
| 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 |
0 commit comments